Class: I2CE FormField INT

From IHRIS Wiki
Revision as of 13:09, 19 October 2009 by Litlfred (talk | contribs)

This article describes the class I2CE_FormField_INT.

Class for defining all the database fields used by a object.

Methods

__construct()

Create a new instance of a I2CE_FormField

  • Signature: public function __construct($name,$options)
  • Parameters:
    • string $name
    • array $options
      A list of options for this form field.

getDisplayValue()

Returns the value of this field as a human readable format.

  • Signature: public function getDisplayValue($entry)
  • Parameters:
    • I2CE_Entry $entry
      If a I2CE_Entry object has been passed to this method then it will return the value for that entry assuming it's an entry for this field.
      • Default Value: false
  • Returns: mixed

isValid()

Checks to see if the current value for this is set and valid.

  • Signature: public function isValid()
  • Returns: boolean

processDOMEditable()

  • Signature: public function processDOMEditable($node,$template,$form_node)
  • Parameters:
    • $node
    • $template
    • $form_node
  • Returns: array
    of DOMNode

processDOMNotEditable()

  • Signature: public function processDOMNotEditable($node,$template,$form_node)
  • Parameters:
    • $node
    • $template
    • $form_node
  • Returns: array
    of DOMNodes