Class: I2CE FormField YESNO
This article describes the class I2CE_FormField_YESNO.
- Extends the class: I2CE_FormField_DB_INT.
- Parent Classses: I2CE_FormField_DB_INT I2CE_FormField I2CE_Fuzzy
- Location: Part of the module forms in the package I2CE
- Source: Defined in the file modules/Forms/lib/fields/I2CE_FormField_YESNO.php
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v2.0.0
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:
getDBValue()
Returns the value of this field ready to be stored in the database.
- Signature: public function getDBValue()
- Returns: mixed
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
- I2CE_Entry $entry
- 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
setFromPost()
Sets the value of this field from the posted form.
- Signature: public function setFromPost($post)
- Parameters:
- array $post
The $_POST array holding the values for this form.
- array $post
Fuzzy Methods
generateLimit_yesno()
This method is implemented by I2CE_Module_FormLimits->generateLimit_YESNO_yesno()
generateLimit_yes()
This method is implemented by I2CE_Module_FormLimits->generateLimit_YESNO_yes()
generateLimit_no()
This method is implemented by I2CE_Module_FormLimits->generateLimit_YESNO_no()
checkLimit_yesno()
This method is implemented by I2CE_Module_FormLimits->checkLimit_YESNO_yesno()
checkLimitString_yesno()
This method is implemented by I2CE_Module_FormLimits->checkLimitString_YESNO_yesno()
getLimitMenu_yesno()
This method is implemented by I2CE_Module_FormLimits->I2CE_FormField_YESNO_DISPLAYFIELDSTYLE_yesno()
processLimitMenu_yesno()
This method is implemented by I2CE_Module_FormLimits->I2CE_FormField_YESNO_PROCESSFIELDSTYLE_yesno()
checkLimit_yes()
This method is implemented by I2CE_Module_FormLimits->checkLimit_YESNO_yes()
checkLimitString_yes()
This method is implemented by I2CE_Module_FormLimits->checkLimitString_YESNO_yes()
getLimitMenu_yes()
This method is implemented by I2CE_Module_FormLimits->I2CE_FormField_YESNO_DISPLAYFIELDSTYLE_yes()
processLimitMenu_yes()
This method is implemented by I2CE_Module_FormLimits->I2CE_FormField_YESNO_PROCESSFIELDSTYLE_yes()
checkLimit_no()
This method is implemented by I2CE_Module_FormLimits->checkLimit_YESNO_no()
checkLimitString_no()
This method is implemented by I2CE_Module_FormLimits->checkLimitString_YESNO_no()
getLimitMenu_no()
This method is implemented by I2CE_Module_FormLimits->I2CE_FormField_YESNO_DISPLAYFIELDSTYLE_no()
processLimitMenu_no()
This method is implemented by I2CE_Module_FormLimits->I2CE_FormField_YESNO_PROCESSFIELDSTYLE_no()