Class: I2CE FormField (Development): Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
**** [[Class: I2CE_FormField_DOCUMENT (Development) | I2CE_FormField_DOCUMENT]] | **** [[Class: I2CE_FormField_DOCUMENT (Development) | I2CE_FormField_DOCUMENT]] | ||
**** [[Class: I2CE_FormField_IMAGE (Development) | I2CE_FormField_IMAGE]] | **** [[Class: I2CE_FormField_IMAGE (Development) | I2CE_FormField_IMAGE]] | ||
** [[Class: I2CE_FormField_DB_DATE (Development) | I2CE_FormField_DB_DATE]] | ** [[Class: I2CE_FormField_DB_DATE (Development) | I2CE_FormField_DB_DATE]] | ||
*** [[Class: I2CE_FormField_DATE_HMS (Development) | I2CE_FormField_DATE_HMS]] | *** [[Class: I2CE_FormField_DATE_HMS (Development) | I2CE_FormField_DATE_HMS]] | ||
Line 21: | Line 19: | ||
*** [[Class: I2CE_FormField_YESNO (Development) | I2CE_FormField_YESNO]] | *** [[Class: I2CE_FormField_YESNO (Development) | I2CE_FormField_YESNO]] | ||
** [[Class: I2CE_FormField_DB_STRING (Development) | I2CE_FormField_DB_STRING]] | ** [[Class: I2CE_FormField_DB_STRING (Development) | I2CE_FormField_DB_STRING]] | ||
*** [[Class: I2CE_FormField_INT_LIST (Development) | I2CE_FormField_INT_LIST]] | |||
*** [[Class: I2CE_FormField_STRING_LINE (Development) | I2CE_FormField_STRING_LINE]] | |||
*** [[Class: I2CE_FormField_STRING_MLINE (Development) | I2CE_FormField_STRING_MLINE]] | |||
*** [[Class: I2CE_FormField_STRING_PASS (Development) | I2CE_FormField_STRING_PASS]] | |||
*** [[Class: I2CE_FormField_MAPPED (Development) | I2CE_FormField_MAPPED]] | *** [[Class: I2CE_FormField_MAPPED (Development) | I2CE_FormField_MAPPED]] | ||
**** [[Class: I2CE_FormField_MAP (Development) | I2CE_FormField_MAP]] | **** [[Class: I2CE_FormField_MAP (Development) | I2CE_FormField_MAP]] | ||
***** [[Class: iHRIS_FormField_CURRENCY (Development) | iHRIS_FormField_CURRENCY]] | ***** [[Class: iHRIS_FormField_CURRENCY (Development) | iHRIS_FormField_CURRENCY]] | ||
**** [[Class: I2CE_FormField_MAP_MULT (Development) | I2CE_FormField_MAP_MULT]] | **** [[Class: I2CE_FormField_MAP_MULT (Development) | I2CE_FormField_MAP_MULT]] | ||
** [[Class: I2CE_FormField_DB_TEXT (Development) | I2CE_FormField_DB_TEXT]] | ** [[Class: I2CE_FormField_DB_TEXT (Development) | I2CE_FormField_DB_TEXT]] | ||
*** [[Class: I2CE_FormField_STRING_TEXT (Development) | I2CE_FormField_STRING_TEXT]] | *** [[Class: I2CE_FormField_STRING_TEXT (Development) | I2CE_FormField_STRING_TEXT]] | ||
*Location: Part of the module [[I2CE Module List (Development)# | ** [[Class: I2CE_FormField_DB_FLOAT (Development) | I2CE_FormField_DB_FLOAT]] | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L31 modules/Forms/lib/I2CE_FormField.php] on line 31 | *** [[Class: I2CE_FormField_FLOAT (Development) | I2CE_FormField_FLOAT]] | ||
*Location: Part of the module [[I2CE Module List (Development)#Fields|Fields]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev | |||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L31 modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 31 | |||
*Author: Luke Duncan <lduncan@intrahealth.org> | *Author: Luke Duncan <lduncan@intrahealth.org> | ||
*Since: v2.0.0 | *Since: v2.0.0 | ||
Line 49: | Line 49: | ||
===$name=== | ===$name=== | ||
The name of this field. | The name of this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L50 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 50 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L50 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 50 | ||
*Type: protected [http://www.php.net/manual/en/language.types.string.php string ] $name | *Type: protected [http://www.php.net/manual/en/language.types.string.php string ] $name | ||
===$options=== | ===$options=== | ||
An associative array with all the options for this form field. | An associative array with all the options for this form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L54 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 54 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L54 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 54 | ||
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $options | *Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $options | ||
===$value=== | ===$value=== | ||
The value of this field. | The value of this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L58 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 58 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L58 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 58 | ||
*Type: protected [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value | *Type: protected [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value | ||
===$headers=== | ===$headers=== | ||
A list of headers for this form field. | A list of headers for this form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L62 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 62 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L62 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 62 | ||
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $headers | *Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $headers | ||
===$href=== | ===$href=== | ||
A URL to be used as a link for this field when displaying the value. | A URL to be used as a link for this field when displaying the value. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L66 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 66 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L66 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 66 | ||
*Type: protected [http://www.php.net/manual/en/language.types.string.php string ] $href | *Type: protected [http://www.php.net/manual/en/language.types.string.php string ] $href | ||
===$ | ===$container=== | ||
A reference to the | A reference to the field conatiner object this field is a part of. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L70 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 70 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L70 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 70 | ||
*Type: protected [[Class: | *Type: protected [[Class: I2CE_FieldContainer (Development) | I2CE_FieldContainer]] $container | ||
===$history=== | ===$history=== | ||
A list of [[Class: I2CE_Entry (Development) | ]] objects for all entries for this field. | A list of [[Class: I2CE_Entry (Development) | ]] objects for all entries for this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L74 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 74 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L74 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 74 | ||
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $history | *Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $history | ||
===$history_idx=== | ===$history_idx=== | ||
The index for cycling through all historical entries. | The index for cycling through all historical entries. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L78 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 78 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L78 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 78 | ||
*Type: protected integer $history_idx | *Type: protected integer $history_idx | ||
===$attributes=== | ===$attributes=== | ||
A list of attributes for this FormField instance. | A list of attributes for this FormField instance. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L82 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 82 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L82 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 82 | ||
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $attributes | *Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $attributes | ||
===$invalid=== | ===$invalid=== | ||
error messages to be displayed when a form is invalid. . string or array of "extra" setInvalid | error messages to be displayed when a form is invalid. . string or array of "extra" setInvalid | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L162 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 162 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L162 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 162 | ||
*Type: protected [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $invalid | *Type: protected [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $invalid | ||
Line 100: | Line 100: | ||
===__construct()=== | ===__construct()=== | ||
Create a new instance of a I2CE_FormField | Create a new instance of a I2CE_FormField | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L173 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 173 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L173 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 173 | ||
*Signature: public function __construct($name,$options) | *Signature: public function __construct($name,$options) | ||
*Parameters: | *Parameters: | ||
Line 108: | Line 108: | ||
===addHistory()=== | ===addHistory()=== | ||
Add a history entry to this field. | Add a history entry to this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L569 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 569 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L569 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 569 | ||
*Signature: public function addHistory($entry) | *Signature: public function addHistory($entry) | ||
*Parameters: | *Parameters: | ||
Line 114: | Line 114: | ||
===compare()=== | ===compare()=== | ||
Compares this form field agains the given form field. | Compares this form field agains the given form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L500 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 500 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L500 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 500 | ||
*Signature: public function compare($db_value) | *Signature: public function compare($db_value) | ||
*Parameters: | *Parameters: | ||
Line 121: | Line 121: | ||
===createField()=== | ===createField()=== | ||
Instantiantiate a field given its short class name | Instantiantiate a field given its short class name | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L94 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 94 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L94 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 94 | ||
*Signature: static public function createField($formfield,$name,$args) | *Signature: static public function createField($formfield,$name,$args) | ||
*Parameters: | *Parameters: | ||
Line 131: | Line 131: | ||
===displayInvalid()=== | ===displayInvalid()=== | ||
Displays invalid/error messages on the given node @var I2CE_Template $template @var DOMNode $node | Displays invalid/error messages on the given node @var I2CE_Template $template @var DOMNode $node | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L857 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 857 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L857 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 857 | ||
*Signature: protected function displayInvalid($template,$node) | *Signature: protected function displayInvalid($template,$node) | ||
*Parameters: | *Parameters: | ||
Line 138: | Line 138: | ||
===firstHistory()=== | ===firstHistory()=== | ||
Reset the history_idx history index and return the first element | Reset the history_idx history index and return the first element | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L589 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 589 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L589 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 589 | ||
*Signature: public function firstHistory() | *Signature: public function firstHistory() | ||
*Returns: DBEntry | *Returns: DBEntry | ||
===getAttribute()=== | ===getAttribute()=== | ||
Return the attribute value for a given attribute. | Return the attribute value for a given attribute. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L915 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 915 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L915 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 915 | ||
*Signature: public function getAttribute($key) | *Signature: public function getAttribute($key) | ||
*Parameters: | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.string.php string ] $key | ** [http://www.php.net/manual/en/language.types.string.php string ] $key | ||
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ] | *Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ] | ||
===getContainer()=== | |||
Returns the form object for this field. | |||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L405 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 405 | |||
*Signature: public function getContainer() | |||
===getDBType()=== | ===getDBType()=== | ||
Return the DB field type for this type. | Return the DB field type for this type. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L253 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 253 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L253 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 253 | ||
*Signature: public function getDBType() | *Signature: public function getDBType() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getDBValue()=== | ===getDBValue()=== | ||
Returns the value of this field ready to be stored in the database. | Returns the value of this field ready to be stored in the database. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L458 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 458 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L458 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 458 | ||
*Signature: public function getDBValue() | *Signature: public function getDBValue() | ||
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ] | *Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ] | ||
===getDefaultValue()=== | ===getDefaultValue()=== | ||
Gets the default value from the field's data | Gets the default value from the field's data | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L224 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 224 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L224 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 224 | ||
*Signature: protected function getDefaultValue($fieldData) | *Signature: protected function getDefaultValue($fieldData) | ||
*Parameters: | *Parameters: | ||
Line 167: | Line 171: | ||
===getDisplayNode()=== | ===getDisplayNode()=== | ||
Return the display value of this form field as a DOM Node. | Return the display value of this form field as a DOM Node. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L628 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 628 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L628 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 628 | ||
*Signature: public function getDisplayNode($node,$template) | *Signature: public function getDisplayNode($node,$template) | ||
*Parameters: | *Parameters: | ||
Line 175: | Line 179: | ||
===getDisplayValue()=== | ===getDisplayValue()=== | ||
Returns the value of this field as a human readable format. | Returns the value of this field as a human readable format. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L468 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 468 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L468 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 468 | ||
*Signature: public function getDisplayValue($entry) | *Signature: public function getDisplayValue($entry) | ||
*Parameters: | *Parameters: | ||
Line 183: | Line 187: | ||
===getDisplays()=== | ===getDisplays()=== | ||
Get the display styles registered for this form field. Will always include 'default' | Get the display styles registered for this form field. Will always include 'default' | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L389 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 389 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L389 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 389 | ||
*Signature: public function getDisplays() | *Signature: public function getDisplays() | ||
*Returns: [http://www.php.net/manual/en/language.types.array.php array ] | *Returns: [http://www.php.net/manual/en/language.types.array.php array ] | ||
===getElement()=== | ===getElement()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L887 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 887 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L887 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 887 | ||
*Signature: protected function getElement() | *Signature: protected function getElement() | ||
===getFromDB()=== | ===getFromDB()=== | ||
Return the value of this field from the database format for the given type | Return the value of this field from the database format for the given type | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L275 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 275 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L275 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 275 | ||
*Signature: public function getFromDB($value) | *Signature: public function getFromDB($value) | ||
*Parameters: | *Parameters: | ||
Line 201: | Line 201: | ||
===getHTMLName()=== | ===getHTMLName()=== | ||
Return the value for the name attribute to be used for this field in a form. | Return the value for the name attribute to be used for this field in a form. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L413 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 413 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L413 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 413 | ||
*Signature: public function getHTMLName($prefix) | *Signature: public function getHTMLName($prefix) | ||
*Parameters: | *Parameters: | ||
Line 209: | Line 209: | ||
===getHeader()=== | ===getHeader()=== | ||
Return the given header by type | Return the given header by type | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L556 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 556 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L556 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 556 | ||
*Signature: public function getHeader($type) | *Signature: public function getHeader($type) | ||
*Parameters: | *Parameters: | ||
Line 216: | Line 216: | ||
===getHref()=== | ===getHref()=== | ||
Return the URL to be used as a link for this field for display. | Return the URL to be used as a link for this field for display. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L614 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 614 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L614 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 614 | ||
*Signature: public function getHref() | *Signature: public function getHref() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getInvalid()=== | ===getInvalid()=== | ||
Return the invalid information. | Return the invalid information. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L154 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 154 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L154 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 154 | ||
*Signature: public function getInvalid() | *Signature: public function getInvalid() | ||
*Returns: [http://www.php.net/manual/en/language.types.array.php array ] | *Returns: [http://www.php.net/manual/en/language.types.array.php array ] | ||
===getMDB2Type()=== | ===getMDB2Type()=== | ||
Return the MDB2 field type for this field. If it isn't set return the DB type. | Return the MDB2 field type for this field. If it isn't set return the DB type. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L262 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 262 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L262 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 262 | ||
*Signature: public function getMDB2Type() | *Signature: public function getMDB2Type() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getName()=== | ===getName()=== | ||
Returns the field name of this field. | Returns the field name of this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L283 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 283 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L283 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 283 | ||
*Signature: public function getName() | *Signature: public function getName() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getOption()=== | ===getOption()=== | ||
Get the value stored at a named option exists | Get the value stored at a named option exists | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L314 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 314 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L314 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 314 | ||
*Signature: public function getOption($option) | *Signature: public function getOption($option) | ||
*Parameters: | *Parameters: | ||
Line 242: | Line 242: | ||
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]* | *Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]* | ||
===getOptionsByPath()=== | ===getOptionsByPath()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L351 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 351 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L351 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 351 | ||
*Signature: protected function getOptionsByPath($path) | *Signature: protected function getOptionsByPath($path) | ||
*Parameters: | *Parameters: | ||
Line 248: | Line 248: | ||
===getString()=== | ===getString()=== | ||
Return the type string for this field. | Return the type string for this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L290 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 290 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L290 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 290 | ||
*Signature: public function getString() | *Signature: public function getString() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getTypeString()=== | ===getTypeString()=== | ||
Return the string name for a given type. | Return the string name for a given type. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L245 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 245 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L245 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 245 | ||
*Signature: public function getTypeString() | *Signature: public function getTypeString() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getValue()=== | ===getValue()=== | ||
Returns the value of this field. | Returns the value of this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L450 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 450 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L450 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 450 | ||
*Signature: public function getValue() | *Signature: public function getValue() | ||
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ] | *Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ] | ||
===hasAttribute()=== | ===hasAttribute()=== | ||
Return true if a given attribute exists for this form. | Return true if a given attribute exists for this form. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L928 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 928 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L928 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 928 | ||
*Signature: public function hasAttribute($key) | *Signature: public function hasAttribute($key) | ||
*Parameters: | *Parameters: | ||
Line 270: | Line 270: | ||
===hasDisplay()=== | ===hasDisplay()=== | ||
Checks to see if the given display type is registed for this form field. | Checks to see if the given display type is registed for this form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L374 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 374 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L374 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 374 | ||
*Signature: public function hasDisplay($type) | *Signature: public function hasDisplay($type) | ||
*Parameters: | *Parameters: | ||
Line 277: | Line 277: | ||
===hasHeader()=== | ===hasHeader()=== | ||
Check to see if the given header type exists | Check to see if the given header type exists | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L549 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 549 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L549 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 549 | ||
*Signature: public function hasHeader($type) | *Signature: public function hasHeader($type) | ||
*Parameters: | *Parameters: | ||
Line 284: | Line 284: | ||
===hasInvalid()=== | ===hasInvalid()=== | ||
Checks to see if there are any entries in the invalid array. | Checks to see if there are any entries in the invalid array. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L139 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 139 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L139 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 139 | ||
*Signature: public function hasInvalid() | *Signature: public function hasInvalid() | ||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | ||
===hasNextHistory()=== | ===hasNextHistory()=== | ||
Check to see if there are remaining DBEntry elements in history array. | Check to see if there are remaining DBEntry elements in history array. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L577 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 577 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L577 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 577 | ||
*Signature: public function hasNextHistory() | *Signature: public function hasNextHistory() | ||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | ||
===hasOption()=== | ===hasOption()=== | ||
Check if a named option exists | Check if a named option exists | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L306 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 306 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L306 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 306 | ||
*Signature: public function hasOption($option) | *Signature: public function hasOption($option) | ||
*Parameters: | *Parameters: | ||
Line 301: | Line 301: | ||
===isInDB()=== | ===isInDB()=== | ||
Checks to see if this field is saved in the database. | Checks to see if this field is saved in the database. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L297 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 297 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L297 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 297 | ||
*Signature: public function isInDB() | *Signature: public function isInDB() | ||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | ||
===isSameValue()=== | ===isSameValue()=== | ||
Check to see if the given DB value is equivalent to this value. | Check to see if the given DB value is equivalent to this value. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L482 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 482 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L482 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 482 | ||
*Signature: public function isSameValue($db_value) | *Signature: public function isSameValue($db_value) | ||
*Parameters: | *Parameters: | ||
Line 313: | Line 313: | ||
===isValid()=== | ===isValid()=== | ||
Checks to see if the current value for this is set and valid. | Checks to see if the current value for this is set and valid. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L516 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 516 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L516 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 516 | ||
*Signature: abstract public function isValid() | *Signature: abstract public function isValid() | ||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | ||
===issetValue()=== | ===issetValue()=== | ||
Checks to see if the value has been set. | Checks to see if the value has been set. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L523 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 523 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L523 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 523 | ||
*Signature: public function issetValue() | *Signature: public function issetValue() | ||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | *Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ] | ||
===nextHistory()=== | ===nextHistory()=== | ||
Return the next DBEntry element from the history array. | Return the next DBEntry element from the history array. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L598 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 598 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L598 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 598 | ||
*Signature: public function nextHistory() | *Signature: public function nextHistory() | ||
*Returns: DBEntry | *Returns: DBEntry | ||
===optionsHasPath()=== | ===optionsHasPath()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L335 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 335 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L335 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 335 | ||
*Signature: protected function optionsHasPath($path) | *Signature: protected function optionsHasPath($path) | ||
*Parameters: | *Parameters: | ||
Line 333: | Line 333: | ||
===processDOM()=== | ===processDOM()=== | ||
Process this form field as a DOM element to place it in the template at the given node. | Process this form field as a DOM element to place it in the template at the given node. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L647 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 647 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L647 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 647 | ||
*Signature: public function processDOM($node,$template) | *Signature: public function processDOM($node,$template) | ||
*Parameters: | *Parameters: | ||
Line 339: | Line 339: | ||
** [[Class: I2CE_Template (Development) | I2CE_Template]] $template | ** [[Class: I2CE_Template (Development) | I2CE_Template]] $template | ||
===processDOMEditable()=== | ===processDOMEditable()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L898 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 898 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L898 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 898 | ||
*Signature: abstract public function processDOMEditable($node,$template,$form_node) | *Signature: abstract public function processDOMEditable($node,$template,$form_node) | ||
*Parameters: | *Parameters: | ||
Line 347: | Line 347: | ||
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]<br/>of DOMNode | *Returns: [http://www.php.net/manual/en/language.types.array.php array ]<br/>of DOMNode | ||
===processDOMNotEditable()=== | ===processDOMNotEditable()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L841 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 841 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L841 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 841 | ||
*Signature: public function processDOMNotEditable($node,$template,$form_node) | *Signature: public function processDOMNotEditable($node,$template,$form_node) | ||
*Parameters: | *Parameters: | ||
Line 355: | Line 355: | ||
===setAttribute()=== | ===setAttribute()=== | ||
Set an attribute for this form. | Set an attribute for this form. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L906 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 906 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L906 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 906 | ||
*Signature: public function setAttribute($key,$value) | *Signature: public function setAttribute($key,$value) | ||
*Parameters: | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.string.php string ] $key | ** [http://www.php.net/manual/en/language.types.string.php string ] $key | ||
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value | ** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value | ||
===setContainer()=== | |||
Sets the field container object for this field. | |||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L327 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 327 | |||
*Signature: public function setContainer($container) | |||
*Parameters: | |||
** [[Class: I2CE_FieldContainer (Development) | I2CE_FieldContainer]] $container | |||
===setDefaultOptions()=== | ===setDefaultOptions()=== | ||
Sets the default options, headers etc. from the field data | Sets the default options, headers etc. from the field data | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L197 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 197 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L197 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 197 | ||
*Signature: public function setDefaultOptions($fieldData) | *Signature: public function setDefaultOptions($fieldData) | ||
*Parameters: | *Parameters: | ||
** arary $fieldData | ** arary $fieldData | ||
===setElement()=== | ===setElement()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L891 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 891 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L891 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 891 | ||
*Signature: protected function setElement($element) | *Signature: protected function setElement($element) | ||
*Parameters: | *Parameters: | ||
**$element | **$element | ||
===setFromDB()=== | ===setFromDB()=== | ||
Sets the value of this field from the database format. | Sets the value of this field from the database format. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L434 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 434 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L434 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 434 | ||
*Signature: public function setFromDB($value) | *Signature: public function setFromDB($value) | ||
*Parameters: | *Parameters: | ||
Line 385: | Line 385: | ||
===setFromPost()=== | ===setFromPost()=== | ||
Sets the value of this field from the posted form. | Sets the value of this field from the posted form. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L442 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 442 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L442 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 442 | ||
*Signature: public function setFromPost($post) | *Signature: public function setFromPost($post) | ||
*Parameters: | *Parameters: | ||
Line 391: | Line 391: | ||
===setHeaders()=== | ===setHeaders()=== | ||
Set the headers for this form field. | Set the headers for this form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L538 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 538 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L538 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 538 | ||
*Signature: public function setHeaders($headers) | *Signature: public function setHeaders($headers) | ||
*Parameters: | *Parameters: | ||
Line 397: | Line 397: | ||
===setHref()=== | ===setHref()=== | ||
Set the URL for this field | Set the URL for this field | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L606 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 606 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L606 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 606 | ||
*Signature: public function setHref($href) | *Signature: public function setHref($href) | ||
*Parameters: | *Parameters: | ||
Line 403: | Line 403: | ||
===setInvalid()=== | ===setInvalid()=== | ||
Add or replace an entry in the invalid array. The format for the $extra parameter is: array( "URL" => array( 'id' => 'display' ) ); The id value will be appended to the URL and the display part will be displayed as the link text. | Add or replace an entry in the invalid array. The format for the $extra parameter is: array( "URL" => array( 'id' => 'display' ) ); The id value will be appended to the URL and the display part will be displayed as the link text. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L125 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 125 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L125 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 125 | ||
*Signature: public function setInvalid($message,$extra) | *Signature: public function setInvalid($message,$extra) | ||
*Parameters: | *Parameters: | ||
Line 411: | Line 411: | ||
===setValue()=== | ===setValue()=== | ||
Sets the value of this field. | Sets the value of this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L427 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 427 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L427 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 427 | ||
*Signature: public function setValue($value) | *Signature: public function setValue($value) | ||
*Parameters: | *Parameters: | ||
Line 417: | Line 417: | ||
===unsetValue()=== | ===unsetValue()=== | ||
Unsets the value of this field. | Unsets the value of this field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/lib/I2CE_FormField.php#L529 i2ce/modules/Forms/lib/I2CE_FormField.php] on line 529 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Fields/lib/I2CE_FormField.php#L529 i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php] on line 529 | ||
*Signature: public function unsetValue() | *Signature: public function unsetValue() | ||
==Inherited Methods== | ==Inherited Methods== | ||
Line 431: | Line 431: | ||
This method is implemented by [[Class: I2CE_Module_CustomReports (Development)#isNumericField() | I2CE_Module_CustomReports->isNumericField() ]] | This method is implemented by [[Class: I2CE_Module_CustomReports (Development)#isNumericField() | I2CE_Module_CustomReports->isNumericField() ]] | ||
===getLimitStyles()=== | ===getLimitStyles()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#getFieldLimitStyles() | I2CE_Module_FieldLimits->getFieldLimitStyles() ]] | ||
===generateLimit()=== | ===generateLimit()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateFieldLimit() | I2CE_Module_FieldLimits->generateFieldLimit() ]] | ||
===generateLimit_null()=== | ===generateLimit_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_null() | I2CE_Module_FieldLimits->generateLimit_null() ]] | ||
===generateLimit_not_null()=== | ===generateLimit_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_not_null() | I2CE_Module_FieldLimits->generateLimit_not_null() ]] | ||
===generateLimit_null_not_null()=== | ===generateLimit_null_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_not_null() | I2CE_Module_FieldLimits->generateLimit_not_null() ]] | ||
===checkLimit_null()=== | ===checkLimit_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#checkLimit_null() | I2CE_Module_FieldLimits->checkLimit_null() ]] | ||
===checkLimit_not_null()=== | ===checkLimit_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#checkLimit_not_null() | I2CE_Module_FieldLimits->checkLimit_not_null() ]] | ||
===checkLimit_null_not_null()=== | ===checkLimit_null_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#checkLimit_not_null() | I2CE_Module_FieldLimits->checkLimit_not_null() ]] | ||
===checkLimitString_null()=== | ===checkLimitString_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#checkLimitString_null() | I2CE_Module_FieldLimits->checkLimitString_null() ]] | ||
===checkLimitString_not_null()=== | ===checkLimitString_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#checkLimitString_not_null() | I2CE_Module_FieldLimits->checkLimitString_not_null() ]] | ||
===checkLimitString_null_not_null()=== | ===checkLimitString_null_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#checkLimitString_not_null() | I2CE_Module_FieldLimits->checkLimitString_not_null() ]] | ||
===getLimitMenu_null()=== | ===getLimitMenu_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_null() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_null() ]] | ||
===getLimitMenu_not_null()=== | ===getLimitMenu_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_not_null() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_not_null() ]] | ||
===getLimitMenu_null_not_null()=== | ===getLimitMenu_null_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_null_not_null() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_null_not_null() ]] | ||
===processLimitMenu_null()=== | ===processLimitMenu_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_null() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_null() ]] | ||
===processLimitMenu_not_null()=== | ===processLimitMenu_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_not_null() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_not_null() ]] | ||
===processLimitMenu_null_not_null()=== | ===processLimitMenu_null_not_null()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_null_not_null() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_null_not_null() ]] | ||
===generateLimit_max_parent()=== | ===generateLimit_max_parent()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_max_parent() | I2CE_Module_FieldLimits->generateLimit_max_parent() ]] | ||
===generateLimit_min_parent()=== | ===generateLimit_min_parent()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_min_parent() | I2CE_Module_FieldLimits->generateLimit_min_parent() ]] | ||
===generateLimit_max_parent_form()=== | ===generateLimit_max_parent_form()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_max_parent_form() | I2CE_Module_FieldLimits->generateLimit_max_parent_form() ]] | ||
===generateLimit_min_parent_form()=== | ===generateLimit_min_parent_form()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#generateLimit_min_parent_form() | I2CE_Module_FieldLimits->generateLimit_min_parent_form() ]] | ||
===getLimitMenu_max_parent()=== | ===getLimitMenu_max_parent()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_max_parent() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_max_parent() ]] | ||
===getLimitMenu_min_parent()=== | ===getLimitMenu_min_parent()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_min_parent() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_min_parent() ]] | ||
===getLimitMenu_max_parent_form()=== | ===getLimitMenu_max_parent_form()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_max_parent_form() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_max_parent_form() ]] | ||
===getLimitMenu_min_parent_form()=== | ===getLimitMenu_min_parent_form()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_DISPLAYFIELDSTYLE_min_parent_form() | I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_min_parent_form() ]] | ||
===processLimitMenu_max_parent()=== | ===processLimitMenu_max_parent()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_max_parent() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_max_parent() ]] | ||
===processLimitMenu_min_parent()=== | ===processLimitMenu_min_parent()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_min_parent() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_min_parent() ]] | ||
===processLimitMenu_max_parent_form()=== | ===processLimitMenu_max_parent_form()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_max_parent_form() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_max_parent_form() ]] | ||
===processLimitMenu_min_parent_form()=== | ===processLimitMenu_min_parent_form()=== | ||
This method is implemented by [[Class: | This method is implemented by [[Class: I2CE_Module_FieldLimits (Development)#I2CE_FormField_PROCESSFIELDSTYLE_min_parent_form() | I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_min_parent_form() ]] | ||
===save()=== | ===save()=== | ||
This method is implemented by [[Class: I2CE_FormStorage (Development)#FF_save() | I2CE_FormStorage->FF_save() ]] | This method is implemented by [[Class: I2CE_FormStorage (Development)#FF_save() | I2CE_FormStorage->FF_save() ]] |
Latest revision as of 07:55, 3 August 2010
This article describes the abstract class I2CE_FormField .
- Extends the class: I2CE_Fuzzy.
- Child Classes:
- Location: Part of the module Fields in the package I2CE 4.0-dev
- Source: Defined in the file modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 31
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v2.0.0
Class for defining all the database fields used by a object.
Constants
I2CE_FormField::FIELD_TYPE_I2CE
A string type for the field Defined as: "string"
I2CE_FormField::FIELD_TYPE_DB
The database type for the field Defined as: "varchar( 255 ) COLLATE utf8_bin default NULL"
I2CE_FormField::FIELD_TYPE_MDB2
The MDB2 type for the field. Defined as: "text"
Variables
$name
The name of this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 50
- Type: protected string $name
$options
An associative array with all the options for this form field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 54
- Type: protected array $options
$value
The value of this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 58
- Type: protected mixed $value
$headers
A list of headers for this form field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 62
- Type: protected array $headers
$href
A URL to be used as a link for this field when displaying the value.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 66
- Type: protected string $href
$container
A reference to the field conatiner object this field is a part of.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 70
- Type: protected I2CE_FieldContainer $container
$history
A list of objects for all entries for this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 74
- Type: protected array $history
$history_idx
The index for cycling through all historical entries.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 78
- Type: protected integer $history_idx
$attributes
A list of attributes for this FormField instance.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 82
- Type: protected array $attributes
$invalid
error messages to be displayed when a form is invalid. . string or array of "extra" setInvalid
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 162
- Type: protected mixed $invalid
Methods
__construct()
Create a new instance of a I2CE_FormField
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 173
- Signature: public function __construct($name,$options)
- Parameters:
addHistory()
Add a history entry to this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 569
- Signature: public function addHistory($entry)
- Parameters:
- I2CE_Entry $entry
The historical entry
- I2CE_Entry $entry
compare()
Compares this form field agains the given form field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 500
- Signature: public function compare($db_value)
- Parameters:
- mixed $db_value
Either a DB Value or an I2CE_FormField
- mixed $db_value
- Returns: -1,0,1
createField()
Instantiantiate a field given its short class name
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 94
- Signature: static public function createField($formfield,$name,$args)
- Parameters:
- Returns: mixed
I2CE_FormField or false on failure
displayInvalid()
Displays invalid/error messages on the given node @var I2CE_Template $template @var DOMNode $node
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 857
- Signature: protected function displayInvalid($template,$node)
- Parameters:
- $template
- $node
firstHistory()
Reset the history_idx history index and return the first element
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 589
- Signature: public function firstHistory()
- Returns: DBEntry
getAttribute()
Return the attribute value for a given attribute.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 915
- Signature: public function getAttribute($key)
- Parameters:
- string $key
- Returns: mixed
getContainer()
Returns the form object for this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 405
- Signature: public function getContainer()
getDBType()
Return the DB field type for this type.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 253
- Signature: public function getDBType()
- Returns: string
getDBValue()
Returns the value of this field ready to be stored in the database.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 458
- Signature: public function getDBValue()
- Returns: mixed
getDefaultValue()
Gets the default value from the field's data
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 224
- Signature: protected function getDefaultValue($fieldData)
- Parameters:
- array $fieldData
- Returns: array
where the first element is boolean (true if the has been a default value set, false otherwise) and the second element is the default value to be set.
getDisplayNode()
Return the display value of this form field as a DOM Node.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 628
- Signature: public function getDisplayNode($node,$template)
- Parameters:
- DOMNode $node
- I2CE_Template $template
- Returns: DOMNode
getDisplayValue()
Returns the value of this field as a human readable format.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 468
- 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
- I2CE_Entry $entry
- Returns: mixed
getDisplays()
Get the display styles registered for this form field. Will always include 'default'
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 389
- Signature: public function getDisplays()
- Returns: array
getElement()
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 887
- Signature: protected function getElement()
getFromDB()
Return the value of this field from the database format for the given type
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 275
- Signature: public function getFromDB($value)
- Parameters:
- mixed $value
getHTMLName()
Return the value for the name attribute to be used for this field in a form.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 413
- Signature: public function getHTMLName($prefix)
- Parameters:
- $prefix
- Default Value: 'fields'
- $prefix
- Returns: string
getHeader()
Return the given header by type
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 556
- Signature: public function getHeader($type)
- Parameters:
- string $type
- Default Value: "default"
- string $type
getHref()
Return the URL to be used as a link for this field for display.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 614
- Signature: public function getHref()
- Returns: string
getInvalid()
Return the invalid information.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 154
- Signature: public function getInvalid()
- Returns: array
getMDB2Type()
Return the MDB2 field type for this field. If it isn't set return the DB type.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 262
- Signature: public function getMDB2Type()
- Returns: string
getName()
Returns the field name of this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 283
- Signature: public function getName()
- Returns: string
getOption()
Get the value stored at a named option exists
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 314
- Signature: public function getOption($option)
- Parameters:
- string $option
- Returns: mixed *
getOptionsByPath()
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 351
- Signature: protected function getOptionsByPath($path)
- Parameters:
- $path
getString()
Return the type string for this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 290
- Signature: public function getString()
- Returns: string
getTypeString()
Return the string name for a given type.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 245
- Signature: public function getTypeString()
- Returns: string
getValue()
Returns the value of this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 450
- Signature: public function getValue()
- Returns: mixed
hasAttribute()
Return true if a given attribute exists for this form.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 928
- Signature: public function hasAttribute($key)
- Parameters:
- string $key
- Returns: boolean;
hasDisplay()
Checks to see if the given display type is registed for this form field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 374
- Signature: public function hasDisplay($type)
- Parameters:
- string $type
The display type. 'default' always returns true
- string $type
- Returns: boolean
hasHeader()
Check to see if the given header type exists
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 549
- Signature: public function hasHeader($type)
- Parameters:
- string $type
- Default Value: "default"
- string $type
hasInvalid()
Checks to see if there are any entries in the invalid array.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 139
- Signature: public function hasInvalid()
- Returns: boolean
hasNextHistory()
Check to see if there are remaining DBEntry elements in history array.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 577
- Signature: public function hasNextHistory()
- Returns: boolean
hasOption()
Check if a named option exists
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 306
- Signature: public function hasOption($option)
- Parameters:
- string $option
- Returns: boolean *
isInDB()
Checks to see if this field is saved in the database.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 297
- Signature: public function isInDB()
- Returns: boolean
isSameValue()
Check to see if the given DB value is equivalent to this value.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 482
- Signature: public function isSameValue($db_value)
- Parameters:
- mixed $db_value
Either a DB Value or an I2CE_FormField
- mixed $db_value
- Returns: boolean
isValid()
Checks to see if the current value for this is set and valid.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 516
- Signature: abstract public function isValid()
- Returns: boolean
issetValue()
Checks to see if the value has been set.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 523
- Signature: public function issetValue()
- Returns: boolean
nextHistory()
Return the next DBEntry element from the history array.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 598
- Signature: public function nextHistory()
- Returns: DBEntry
optionsHasPath()
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 335
- Signature: protected function optionsHasPath($path)
- Parameters:
- $path
processDOM()
Process this form field as a DOM element to place it in the template at the given node.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 647
- Signature: public function processDOM($node,$template)
- Parameters:
- DOMNode $node
- I2CE_Template $template
processDOMEditable()
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 898
- Signature: abstract public function processDOMEditable($node,$template,$form_node)
- Parameters:
- $node
- $template
- $form_node
- Returns: array
of DOMNode
processDOMNotEditable()
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 841
- Signature: public function processDOMNotEditable($node,$template,$form_node)
- Parameters:
- DOMNode $node
- I2CE_Template $template
- DOMNode $form_node
setAttribute()
Set an attribute for this form.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 906
- Signature: public function setAttribute($key,$value)
- Parameters:
setContainer()
Sets the field container object for this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 327
- Signature: public function setContainer($container)
- Parameters:
- I2CE_FieldContainer $container
setDefaultOptions()
Sets the default options, headers etc. from the field data
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 197
- Signature: public function setDefaultOptions($fieldData)
- Parameters:
- arary $fieldData
setElement()
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 891
- Signature: protected function setElement($element)
- Parameters:
- $element
setFromDB()
Sets the value of this field from the database format.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 434
- Signature: public function setFromDB($value)
- Parameters:
- mixed $value
setFromPost()
Sets the value of this field from the posted form.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 442
- Signature: public function setFromPost($post)
- Parameters:
- mixed $post
setHeaders()
Set the headers for this form field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 538
- Signature: public function setHeaders($headers)
- Parameters:
- array $headers
setHref()
Set the URL for this field
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 606
- Signature: public function setHref($href)
- Parameters:
- string $href
setInvalid()
Add or replace an entry in the invalid array. The format for the $extra parameter is: array( "URL" => array( 'id' => 'display' ) ); The id value will be appended to the URL and the display part will be displayed as the link text.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 125
- Signature: public function setInvalid($message,$extra)
- Parameters:
setValue()
Sets the value of this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 427
- Signature: public function setValue($value)
- Parameters:
- mixed $value
unsetValue()
Unsets the value of this field.
- Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FormField.php on line 529
- Signature: public function unsetValue()
Inherited Methods
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()
Fuzzy Methods
cachedTableReference()
This method is implemented by I2CE_Module_CachedForms->cachedTableReference()
isNumeric()
This method is implemented by I2CE_Module_CustomReports->isNumericField()
getLimitStyles()
This method is implemented by I2CE_Module_FieldLimits->getFieldLimitStyles()
generateLimit()
This method is implemented by I2CE_Module_FieldLimits->generateFieldLimit()
generateLimit_null()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_null()
generateLimit_not_null()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_not_null()
generateLimit_null_not_null()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_not_null()
checkLimit_null()
This method is implemented by I2CE_Module_FieldLimits->checkLimit_null()
checkLimit_not_null()
This method is implemented by I2CE_Module_FieldLimits->checkLimit_not_null()
checkLimit_null_not_null()
This method is implemented by I2CE_Module_FieldLimits->checkLimit_not_null()
checkLimitString_null()
This method is implemented by I2CE_Module_FieldLimits->checkLimitString_null()
checkLimitString_not_null()
This method is implemented by I2CE_Module_FieldLimits->checkLimitString_not_null()
checkLimitString_null_not_null()
This method is implemented by I2CE_Module_FieldLimits->checkLimitString_not_null()
getLimitMenu_null()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_null()
getLimitMenu_not_null()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_not_null()
getLimitMenu_null_not_null()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_null_not_null()
processLimitMenu_null()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_null()
processLimitMenu_not_null()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_not_null()
processLimitMenu_null_not_null()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_null_not_null()
generateLimit_max_parent()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_max_parent()
generateLimit_min_parent()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_min_parent()
generateLimit_max_parent_form()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_max_parent_form()
generateLimit_min_parent_form()
This method is implemented by I2CE_Module_FieldLimits->generateLimit_min_parent_form()
getLimitMenu_max_parent()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_max_parent()
getLimitMenu_min_parent()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_min_parent()
getLimitMenu_max_parent_form()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_max_parent_form()
getLimitMenu_min_parent_form()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_DISPLAYFIELDSTYLE_min_parent_form()
processLimitMenu_max_parent()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_max_parent()
processLimitMenu_min_parent()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_min_parent()
processLimitMenu_max_parent_form()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_max_parent_form()
processLimitMenu_min_parent_form()
This method is implemented by I2CE_Module_FieldLimits->I2CE_FormField_PROCESSFIELDSTYLE_min_parent_form()
save()
This method is implemented by I2CE_FormStorage->FF_save()
populateHistory()
This method is implemented by I2CE_FormStorage->FF_populateHistory()
Fuzzy CLI Methods
cachedTableReference()
This method is implemented by I2CE_Module_CachedForms->cachedTableReference()