Class: I2CE FormField MAPPED (Development): Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
 
Line 5: Line 5:
** [[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_REMAP (Development) | I2CE_FormField_REMAP]]
** [[Class: I2CE_FormField_MAP_MULT (Development) | I2CE_FormField_MAP_MULT]]
** [[Class: I2CE_FormField_MAP_MULT (Development) | I2CE_FormField_MAP_MULT]]
*Location: Part of the module [[I2CE Module List (Development)#Lists|Lists]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
*** [[Class: I2CE_FormField_MAP_MULTUNION (Development) | I2CE_FormField_MAP_MULTUNION]]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L33 modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 33
*Location: Part of the module [[I2CE Module List (Development)#Lists|Lists]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L33 modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 33
*Author: Carl Leitner <litlfred@ibiblio.org>
*Author: Carl Leitner <litlfred@ibiblio.org>
*Since: v3.2.69
*Since: v3.2.69
@filesource Class I2CE_FormField_MAPPED
@filesource Class I2CE_FormField_MAPPED
==Variables==
===$alternate_limits===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L163 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 163
*Type: protected $alternate_limits
==Methods==
==Methods==
===__call()===
===__call()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L223 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 223
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L486 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 486
*Signature: public function __call($method,$params)
*Signature: public function __call($method,$params)
*Parameters:
*Parameters:
**$method  
**$method  
**$params  
**$params  
===_create_DOMEditable_ajax_list()===
Creates an ajax set of drop downs that are populated during the page load with web services and as you select each level.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L518 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 518
*Signature: protected function _create_DOMEditable_ajax_list($node,$template,$form_node,$show_hidden,$multiple)
*Parameters:
** [http://www.php.net/manual/en/class.domnode.php DOMNode ] $node <br/>the node that requested this drop down
** [[Class: I2CE_Template (Development) | I2CE_Template]] $template
**$form_node
** [http://www.php.net/manual/en/language.types.integer.php int ] $show_hidden <br/>0=non-hidden, 1=All, 2=hidden only.  Defaults to 0
***Default Value: 0
** [http://www.php.net/manual/en/language.types.integer.php int ] $multiple <br/>set to true if multiple selections are allowed
***Default Value: false
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]<br/>DOMNode or an array of DOMNodes to add.
===_hasMethod()===
===_hasMethod()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L238 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 238
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L501 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 501
*Signature: public function _hasMethod($method,$getFuzzy,$returnErrors)
*Signature: public function _hasMethod($method,$getFuzzy,$returnErrors)
*Parameters:
*Parameters:
Line 29: Line 49:
===_processDOMEditable()===
===_processDOMEditable()===
Set up the default editable display for this form field.
Set up the default editable display for this form field.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L178 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 178
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L402 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 402
*Signature: protected function _processDOMEditable($node,$template,$form_node,$display)
*Signature: protected function _processDOMEditable($node,$template,$form_node,$display)
*Parameters:
*Parameters:
Line 39: Line 59:
===canSelectAnyForm()===
===canSelectAnyForm()===
Checks to see if this field can have map to any form or not.  Set to true in meta/form_any
Checks to see if this field can have map to any form or not.  Set to true in meta/form_any
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L104 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 104
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L120 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 120
*Signature: public function canSelectAnyForm()
*Signature: public function canSelectAnyForm()
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
===getAdditionalLimits()===
Gets any additional dynamic limits
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L217 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 217
*Signature: protected function getAdditionalLimits($template,$node,$limit)
*Parameters:
** I2CE_Tempalte $template
** DOMElment $node
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $limit <br/>a json encoded string of limit data or an array of limit data
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]<br/>who keys are selectable form norms with additional limits and values are the limit data
===getComponentizedValue()===
===getComponentizedValue()===
Componentizes the given $db_value based on component
Componentizes the given $db_value based on component
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L42 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 42
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L42 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 42
*Signature: abstract public function getComponentizedValue($db_value,$forms,$component)
*Signature: abstract public function getComponentizedValue($db_value,$forms,$component)
*Parameters:
*Parameters:
Line 52: Line 81:
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>The componentized db_value
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]<br/>The componentized db_value
===getDefaultDisplayStyle()===
===getDefaultDisplayStyle()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L54 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 54
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L54 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 54
*Signature: abstract public function getDefaultDisplayStyle($type)
*Signature: abstract public function getDefaultDisplayStyle($type)
*Parameters:
*Parameters:
**$type  
**$type  
===getDisplayReport()===
Return a report name to use for getting the display data for this mapped field instead of using the direct data or from cached tables when that may be very slow.  This is generally for more complicated displays using a tree view.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L150 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 150
*Signature: public function getDisplayReport($type)
*Parameters:
** [http://www.php.net/manual/en/language.types.string.php string ] $type
***Default Value: 'default'
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
===getDisplayedFields()===
===getDisplayedFields()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L75 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 75
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L91 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 91
*Signature: public function getDisplayedFields($type,$check_forms)
*Signature: public function getDisplayedFields($type,$check_forms)
*Parameters:
*Parameters:
Line 65: Line 102:
***Default Value: true
***Default Value: true
===getDisplayedStyle()===
===getDisplayedStyle()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L60 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 60
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L76 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 76
*Signature: public function getDisplayedStyle($type)
*Signature: public function getDisplayedStyle($type)
*Parameters:
*Parameters:
Line 71: Line 108:
***Default Value: 'default'
***Default Value: 'default'
===getFormLimits()===
===getFormLimits()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L126 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 126
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L171 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 171
*Signature: public function getFormLimits($type)
*Signature: public function getFormLimits($type)
*Parameters:
*Parameters:
Line 77: Line 114:
***Default Value: 'default'
***Default Value: 'default'
===getFormOrders()===
===getFormOrders()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L91 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 91
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L107 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 107
*Signature: public function getFormOrders($type)
*Signature: public function getFormOrders($type)
*Parameters:
*Parameters:
Line 83: Line 120:
***Default Value: 'default'
***Default Value: 'default'
===getMapOptions()===
===getMapOptions()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L140 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 140
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L301 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 301
*Signature: public function getMapOptions($type)
*Signature: public function getMapOptions($type,$show_hidden,$flat,$add_limits)
*Parameters:
*Parameters:
**$type  
**$type  
***Default Value: 'default'
***Default Value: 'default'
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]<br/>where keys are ids, values are arrays with the following keys 'value', 'display', possibly 'title'
**$show_hidden
***Default Value: 0
**$flat
***Default Value: true
**$add_limits
***Default Value: array()
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]<br/>where keys are ids, values are arrays with the following keys 'value', 'display'
===getSQLComponentization()===
===getSQLComponentization()===
Componentizes the given $db_value based on component
Componentizes the given $db_value based on component
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L51 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 51
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L51 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 51
*Signature: abstract public function getSQLComponentization($db_ref,$forms,$component)
*Signature: abstract public function getSQLComponentization($db_ref,$forms,$component)
*Parameters:
*Parameters:
Line 100: Line 143:
===getSelectableForms()===
===getSelectableForms()===
Checks to see which forms this form can map to.
Checks to see which forms this form can map to.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L114 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 114
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L129 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 129
*Signature: public function getSelectableForms()
*Signature: public function getSelectableForms()
*Returns: array()
*Returns: array()
===processDOMEditable()===
===processDOMEditable()===
Set up the default editable display for this form field.
Set up the default editable display for this form field.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L170 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 170
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L386 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 386
*Signature: public function processDOMEditable($node,$template,$form_node)
*Signature: public function processDOMEditable($node,$template,$form_node)
*Parameters:
*Parameters:
Line 112: Line 155:
**$form_node  
**$form_node  
*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
===processHeaderEditable()===
Process the header of an editable node
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L343 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 343
*Signature: protected function processHeaderEditable($template,$node,$head_node)
*Parameters:
** [[Class: I2CE_Template (Development) | I2CE_Template]] $template
** [http://www.php.net/manual/en/class.domnode.php DOMNode ] $node
** [http://www.php.net/manual/en/class.domnode.php DOMNode ] $head_node
===remapField()===
Hooked method to remap a given id on a given form and field @param I2CE_List $lsit
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L66 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 66
*Signature: public function remapField($form,$oldid,$newid)
*Parameters:
**$form
** [http://www.php.net/manual/en/language.types.string.php string ] $oldid
** [http://www.php.net/manual/en/language.types.string.php string ] $newid
===restoreLimits()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L168 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 168
*Signature: public function restoreLimits($type)
*Parameters:
**$type
***Default Value: 'default'
===setAlternateLimits()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php#L165 i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php] on line 165
*Signature: public function setAlternateLimits($limits,$type)
*Parameters:
**$limits
**$type
***Default Value: 'default'
==Inherited Methods==
==Inherited Methods==
===isValid()===
===isValid()===
Line 121: Line 193:
===addHistory()===
===addHistory()===
This public method is inherited from [[Class: I2CE_FormField (Development)#addHistory() | I2CE_FormField->addHistory()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#addHistory() | I2CE_FormField->addHistory()]]
===cleanup()===
This public method is inherited from [[Class: I2CE_FormField (Development)#cleanup() | I2CE_FormField->cleanup()]]


===compare()===
===compare()===
This public method is inherited from [[Class: I2CE_FormField (Development)#compare() | I2CE_FormField->compare()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#compare() | I2CE_FormField->compare()]]
===compareEntryDate()===
This public method is inherited from [[Class: I2CE_FormField (Development)#compareEntryDate() | I2CE_FormField->compareEntryDate()]]


===createField()===
===createField()===
Line 151: Line 229:
===getDisplays()===
===getDisplays()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getDisplays() | I2CE_FormField->getDisplays()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#getDisplays() | I2CE_FormField->getDisplays()]]
===getElement()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getElement() | I2CE_FormField->getElement()]]


===getFromDB()===
===getFromDB()===
Line 160: Line 241:
===getHeader()===
===getHeader()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getHeader() | I2CE_FormField->getHeader()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#getHeader() | I2CE_FormField->getHeader()]]
===getHistory()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getHistory() | I2CE_FormField->getHistory()]]


===getHref()===
===getHref()===
Line 214: Line 298:
===nextHistory()===
===nextHistory()===
This public method is inherited from [[Class: I2CE_FormField (Development)#nextHistory() | I2CE_FormField->nextHistory()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#nextHistory() | I2CE_FormField->nextHistory()]]
===postprocessDOMEditable()===
This public method is inherited from [[Class: I2CE_FormField (Development)#postprocessDOMEditable() | I2CE_FormField->postprocessDOMEditable()]]


===processDOM()===
===processDOM()===
Line 229: Line 316:
===setDefaultOptions()===
===setDefaultOptions()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setDefaultOptions() | I2CE_FormField->setDefaultOptions()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#setDefaultOptions() | I2CE_FormField->setDefaultOptions()]]
===setElement()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setElement() | I2CE_FormField->setElement()]]


===setFromDB()===
===setFromDB()===
Line 235: Line 325:
===setFromPost()===
===setFromPost()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setFromPost() | I2CE_FormField->setFromPost()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#setFromPost() | I2CE_FormField->setFromPost()]]
===setHTMLName()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setHTMLName() | I2CE_FormField->setHTMLName()]]


===setHeaders()===
===setHeaders()===
Line 244: Line 337:
===setInvalid()===
===setInvalid()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setInvalid() | I2CE_FormField->setInvalid()]]
This public method is inherited from [[Class: I2CE_FormField (Development)#setInvalid() | I2CE_FormField->setInvalid()]]
===setInvalidMessage()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setInvalidMessage() | I2CE_FormField->setInvalidMessage()]]
===setOption()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setOption() | I2CE_FormField->setOption()]]


===setValue()===
===setValue()===
Line 256: Line 355:
===getDefaultValue()===
===getDefaultValue()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#getDefaultValue() | I2CE_FormField->getDefaultValue()]]
This protected method is inherited from [[Class: I2CE_FormField (Development)#getDefaultValue() | I2CE_FormField->getDefaultValue()]]
===getElement()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#getElement() | I2CE_FormField->getElement()]]


===getOptionsByPath()===
===getOptionsByPath()===
Line 266: Line 362:
This protected method is inherited from [[Class: I2CE_FormField (Development)#optionsHasPath() | I2CE_FormField->optionsHasPath()]]
This protected method is inherited from [[Class: I2CE_FormField (Development)#optionsHasPath() | I2CE_FormField->optionsHasPath()]]


===setElement()===
===withinForm()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#setElement() | I2CE_FormField->setElement()]]
This protected method is inherited from [[Class: I2CE_FormField (Development)#withinForm() | I2CE_FormField->withinForm()]]
==Inherited Variables==
==Inherited Variables==
===$name===
===$name===
Line 298: Line 394:
===$invalid===
===$invalid===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$invalid | I2CE_FormField->$invalid]]
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$invalid | I2CE_FormField->$invalid]]
===$HTMLName===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$HTMLName | I2CE_FormField->$HTMLName]]
==Inherited Fuzzy Methods==
==Inherited Fuzzy Methods==
===generateLimit_in()===
===generateLimit_in()===
Line 331: Line 430:
===generateLimit_contains()===
===generateLimit_contains()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#generateLimit_contains() | I2CE_FormField_DB_STRING->generateLimit_contains()]]
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#generateLimit_contains() | I2CE_FormField_DB_STRING->generateLimit_contains()]]
===generateLimit_startswith()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#generateLimit_startswith() | I2CE_FormField_DB_STRING->generateLimit_startswith()]]


===checkLimit_in()===
===checkLimit_in()===
Line 463: Line 565:
===processLimitMenu_contains()===
===processLimitMenu_contains()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#processLimitMenu_contains() | I2CE_FormField_DB_STRING->processLimitMenu_contains()]]
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#processLimitMenu_contains() | I2CE_FormField_DB_STRING->processLimitMenu_contains()]]
===checkLimit_startswith()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#checkLimit_startswith() | I2CE_FormField_DB_STRING->checkLimit_startswith()]]
===checkLimitString_startswith()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#checkLimitString_startswith() | I2CE_FormField_DB_STRING->checkLimitString_startswith()]]
===getLimitMenu_startswith()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#getLimitMenu_startswith() | I2CE_FormField_DB_STRING->getLimitMenu_startswith()]]
===processLimitMenu_startswith()===
This method is inherited from [[Class: I2CE_FormField_DB_STRING (Development)#processLimitMenu_startswith() | I2CE_FormField_DB_STRING->processLimitMenu_startswith()]]


===cachedTableReference()===
===cachedTableReference()===
Line 475: Line 589:
===generateLimit()===
===generateLimit()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit() | I2CE_FormField->generateLimit()]]
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit() | I2CE_FormField->generateLimit()]]
===describeLimit()===
This method is inherited from [[Class: I2CE_FormField (Development)#describeLimit() | I2CE_FormField->describeLimit()]]


===generateLimit_null()===
===generateLimit_null()===
Line 559: Line 676:
===save()===
===save()===
This method is inherited from [[Class: I2CE_FormField (Development)#save() | I2CE_FormField->save()]]
This method is inherited from [[Class: I2CE_FormField (Development)#save() | I2CE_FormField->save()]]
===globalFieldUpdate()===
This method is inherited from [[Class: I2CE_FormField (Development)#globalFieldUpdate() | I2CE_FormField->globalFieldUpdate()]]


===populateHistory()===
===populateHistory()===

Latest revision as of 08:13, 6 May 2015


This article describes the abstract class I2CE_FormField_MAPPED .

@filesource Class I2CE_FormField_MAPPED

Variables

$alternate_limits

Methods

__call()

_create_DOMEditable_ajax_list()

Creates an ajax set of drop downs that are populated during the page load with web services and as you select each level.

  • Defined in i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php on line 518
  • Signature: protected function _create_DOMEditable_ajax_list($node,$template,$form_node,$show_hidden,$multiple)
  • Parameters:
    • DOMNode $node
      the node that requested this drop down
    • I2CE_Template $template
    • $form_node
    • int $show_hidden
      0=non-hidden, 1=All, 2=hidden only. Defaults to 0
      • Default Value: 0
    • int $multiple
      set to true if multiple selections are allowed
      • Default Value: false
  • Returns: mixed
    DOMNode or an array of DOMNodes to add.

_hasMethod()

_processDOMEditable()

Set up the default editable display for this form field.

canSelectAnyForm()

Checks to see if this field can have map to any form or not. Set to true in meta/form_any

getAdditionalLimits()

Gets any additional dynamic limits

  • Defined in i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php on line 217
  • Signature: protected function getAdditionalLimits($template,$node,$limit)
  • Parameters:
    • I2CE_Tempalte $template
    • DOMElment $node
    • mixed $limit
      a json encoded string of limit data or an array of limit data
  • Returns: array
    who keys are selectable form norms with additional limits and values are the limit data

getComponentizedValue()

Componentizes the given $db_value based on component

getDefaultDisplayStyle()

getDisplayReport()

Return a report name to use for getting the display data for this mapped field instead of using the direct data or from cached tables when that may be very slow. This is generally for more complicated displays using a tree view.

getDisplayedFields()

getDisplayedStyle()

getFormLimits()

getFormOrders()

getMapOptions()

  • Defined in i2ce/modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php on line 301
  • Signature: public function getMapOptions($type,$show_hidden,$flat,$add_limits)
  • Parameters:
    • $type
      • Default Value: 'default'
    • $show_hidden
      • Default Value: 0
    • $flat
      • Default Value: true
    • $add_limits
      • Default Value: array()
  • Returns: array
    where keys are ids, values are arrays with the following keys 'value', 'display'

getSQLComponentization()

Componentizes the given $db_value based on component

getSelectableForms()

Checks to see which forms this form can map to.

processDOMEditable()

Set up the default editable display for this form field.

processHeaderEditable()

Process the header of an editable node

remapField()

Hooked method to remap a given id on a given form and field @param I2CE_List $lsit

restoreLimits()

setAlternateLimits()

Inherited Methods

isValid()

This public method is inherited from I2CE_FormField_DB_STRING->isValid()

__construct()

This public method is inherited from I2CE_FormField->__construct()

addHistory()

This public method is inherited from I2CE_FormField->addHistory()

cleanup()

This public method is inherited from I2CE_FormField->cleanup()

compare()

This public method is inherited from I2CE_FormField->compare()

compareEntryDate()

This public method is inherited from I2CE_FormField->compareEntryDate()

createField()

This public method is inherited from I2CE_FormField->createField()

firstHistory()

This public method is inherited from I2CE_FormField->firstHistory()

getAttribute()

This public method is inherited from I2CE_FormField->getAttribute()

getContainer()

This public method is inherited from I2CE_FormField->getContainer()

getDBType()

This public method is inherited from I2CE_FormField->getDBType()

getDBValue()

This public method is inherited from I2CE_FormField->getDBValue()

getDisplayNode()

This public method is inherited from I2CE_FormField->getDisplayNode()

getDisplayValue()

This public method is inherited from I2CE_FormField->getDisplayValue()

getDisplays()

This public method is inherited from I2CE_FormField->getDisplays()

getElement()

This public method is inherited from I2CE_FormField->getElement()

getFromDB()

This public method is inherited from I2CE_FormField->getFromDB()

getHTMLName()

This public method is inherited from I2CE_FormField->getHTMLName()

getHeader()

This public method is inherited from I2CE_FormField->getHeader()

getHistory()

This public method is inherited from I2CE_FormField->getHistory()

getHref()

This public method is inherited from I2CE_FormField->getHref()

getInvalid()

This public method is inherited from I2CE_FormField->getInvalid()

getMDB2Type()

This public method is inherited from I2CE_FormField->getMDB2Type()

getName()

This public method is inherited from I2CE_FormField->getName()

getOption()

This public method is inherited from I2CE_FormField->getOption()

getString()

This public method is inherited from I2CE_FormField->getString()

getTypeString()

This public method is inherited from I2CE_FormField->getTypeString()

getValue()

This public method is inherited from I2CE_FormField->getValue()

hasAttribute()

This public method is inherited from I2CE_FormField->hasAttribute()

hasDisplay()

This public method is inherited from I2CE_FormField->hasDisplay()

hasHeader()

This public method is inherited from I2CE_FormField->hasHeader()

hasInvalid()

This public method is inherited from I2CE_FormField->hasInvalid()

hasNextHistory()

This public method is inherited from I2CE_FormField->hasNextHistory()

hasOption()

This public method is inherited from I2CE_FormField->hasOption()

isInDB()

This public method is inherited from I2CE_FormField->isInDB()

isSameValue()

This public method is inherited from I2CE_FormField->isSameValue()

issetValue()

This public method is inherited from I2CE_FormField->issetValue()

nextHistory()

This public method is inherited from I2CE_FormField->nextHistory()

postprocessDOMEditable()

This public method is inherited from I2CE_FormField->postprocessDOMEditable()

processDOM()

This public method is inherited from I2CE_FormField->processDOM()

processDOMNotEditable()

This public method is inherited from I2CE_FormField->processDOMNotEditable()

setAttribute()

This public method is inherited from I2CE_FormField->setAttribute()

setContainer()

This public method is inherited from I2CE_FormField->setContainer()

setDefaultOptions()

This public method is inherited from I2CE_FormField->setDefaultOptions()

setElement()

This public method is inherited from I2CE_FormField->setElement()

setFromDB()

This public method is inherited from I2CE_FormField->setFromDB()

setFromPost()

This public method is inherited from I2CE_FormField->setFromPost()

setHTMLName()

This public method is inherited from I2CE_FormField->setHTMLName()

setHeaders()

This public method is inherited from I2CE_FormField->setHeaders()

setHref()

This public method is inherited from I2CE_FormField->setHref()

setInvalid()

This public method is inherited from I2CE_FormField->setInvalid()

setInvalidMessage()

This public method is inherited from I2CE_FormField->setInvalidMessage()

setOption()

This public method is inherited from I2CE_FormField->setOption()

setValue()

This public method is inherited from I2CE_FormField->setValue()

unsetValue()

This public method is inherited from I2CE_FormField->unsetValue()

displayInvalid()

This protected method is inherited from I2CE_FormField->displayInvalid()

getDefaultValue()

This protected method is inherited from I2CE_FormField->getDefaultValue()

getOptionsByPath()

This protected method is inherited from I2CE_FormField->getOptionsByPath()

optionsHasPath()

This protected method is inherited from I2CE_FormField->optionsHasPath()

withinForm()

This protected method is inherited from I2CE_FormField->withinForm()

Inherited Variables

$name

Theis protected variable is inherited from I2CE_FormField->$name

$options

Theis protected variable is inherited from I2CE_FormField->$options

$value

Theis protected variable is inherited from I2CE_FormField->$value

$headers

Theis protected variable is inherited from I2CE_FormField->$headers

$href

Theis protected variable is inherited from I2CE_FormField->$href

$container

Theis protected variable is inherited from I2CE_FormField->$container

$history

Theis protected variable is inherited from I2CE_FormField->$history

$history_idx

Theis protected variable is inherited from I2CE_FormField->$history_idx

$attributes

Theis protected variable is inherited from I2CE_FormField->$attributes

$invalid

Theis protected variable is inherited from I2CE_FormField->$invalid

$HTMLName

Theis protected variable is inherited from I2CE_FormField->$HTMLName

Inherited Fuzzy Methods

generateLimit_in()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_in()

generateLimit_equals()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_equals()

generateLimit_greaterthan()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_greaterthan()

generateLimit_lessthan()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_lessthan()

generateLimit_greaterthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_greaterthan_equals()

generateLimit_lessthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_lessthan_equals()

generateLimit_between()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_between()

generateLimit_like()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_like()

generateLimit_lowerlike()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_lowerlike()

generateLimit_lowerequals()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_lowerequals()

generateLimit_contains()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_contains()

generateLimit_startswith()

This method is inherited from I2CE_FormField_DB_STRING->generateLimit_startswith()

checkLimit_in()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_in()

checkLimitString_in()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_in()

getLimitMenu_in()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_in()

processLimitMenu_in()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_in()

checkLimit_equals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_equals()

checkLimitString_equals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_equals()

getLimitMenu_equals()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_equals()

processLimitMenu_equals()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_equals()

checkLimit_greaterthan()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_greaterthan()

checkLimitString_greaterthan()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_greaterthan()

getLimitMenu_greaterthan()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_greaterthan()

processLimitMenu_greaterthan()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_greaterthan()

checkLimit_lessthan()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_lessthan()

checkLimitString_lessthan()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_lessthan()

getLimitMenu_lessthan()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_lessthan()

processLimitMenu_lessthan()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_lessthan()

checkLimit_greaterthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_greaterthan_equals()

checkLimitString_greaterthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_greaterthan_equals()

getLimitMenu_greaterthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_greaterthan_equals()

processLimitMenu_greaterthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_greaterthan_equals()

checkLimit_lessthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_lessthan_equals()

checkLimitString_lessthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_lessthan_equals()

getLimitMenu_lessthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_lessthan_equals()

processLimitMenu_lessthan_equals()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_lessthan_equals()

checkLimit_between()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_between()

checkLimitString_between()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_between()

getLimitMenu_between()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_between()

processLimitMenu_between()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_between()

checkLimit_like()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_like()

checkLimitString_like()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_like()

getLimitMenu_like()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_like()

processLimitMenu_like()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_like()

checkLimit_lowerlike()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_lowerlike()

checkLimitString_lowerlike()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_lowerlike()

getLimitMenu_lowerlike()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_lowerlike()

processLimitMenu_lowerlike()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_lowerlike()

checkLimit_lowerequals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_lowerequals()

checkLimitString_lowerequals()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_lowerequals()

getLimitMenu_lowerequals()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_lowerequals()

processLimitMenu_lowerequals()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_lowerequals()

checkLimit_contains()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_contains()

checkLimitString_contains()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_contains()

getLimitMenu_contains()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_contains()

processLimitMenu_contains()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_contains()

checkLimit_startswith()

This method is inherited from I2CE_FormField_DB_STRING->checkLimit_startswith()

checkLimitString_startswith()

This method is inherited from I2CE_FormField_DB_STRING->checkLimitString_startswith()

getLimitMenu_startswith()

This method is inherited from I2CE_FormField_DB_STRING->getLimitMenu_startswith()

processLimitMenu_startswith()

This method is inherited from I2CE_FormField_DB_STRING->processLimitMenu_startswith()

cachedTableReference()

This method is inherited from I2CE_FormField->cachedTableReference()

isNumeric()

This method is inherited from I2CE_FormField->isNumeric()

getLimitStyles()

This method is inherited from I2CE_FormField->getLimitStyles()

generateLimit()

This method is inherited from I2CE_FormField->generateLimit()

describeLimit()

This method is inherited from I2CE_FormField->describeLimit()

generateLimit_null()

This method is inherited from I2CE_FormField->generateLimit_null()

generateLimit_not_null()

This method is inherited from I2CE_FormField->generateLimit_not_null()

generateLimit_null_not_null()

This method is inherited from I2CE_FormField->generateLimit_null_not_null()

checkLimit_null()

This method is inherited from I2CE_FormField->checkLimit_null()

checkLimit_not_null()

This method is inherited from I2CE_FormField->checkLimit_not_null()

checkLimit_null_not_null()

This method is inherited from I2CE_FormField->checkLimit_null_not_null()

checkLimitString_null()

This method is inherited from I2CE_FormField->checkLimitString_null()

checkLimitString_not_null()

This method is inherited from I2CE_FormField->checkLimitString_not_null()

checkLimitString_null_not_null()

This method is inherited from I2CE_FormField->checkLimitString_null_not_null()

getLimitMenu_null()

This method is inherited from I2CE_FormField->getLimitMenu_null()

getLimitMenu_not_null()

This method is inherited from I2CE_FormField->getLimitMenu_not_null()

getLimitMenu_null_not_null()

This method is inherited from I2CE_FormField->getLimitMenu_null_not_null()

processLimitMenu_null()

This method is inherited from I2CE_FormField->processLimitMenu_null()

processLimitMenu_not_null()

This method is inherited from I2CE_FormField->processLimitMenu_not_null()

processLimitMenu_null_not_null()

This method is inherited from I2CE_FormField->processLimitMenu_null_not_null()

generateLimit_max_parent()

This method is inherited from I2CE_FormField->generateLimit_max_parent()

generateLimit_min_parent()

This method is inherited from I2CE_FormField->generateLimit_min_parent()

generateLimit_max_parent_form()

This method is inherited from I2CE_FormField->generateLimit_max_parent_form()

generateLimit_min_parent_form()

This method is inherited from I2CE_FormField->generateLimit_min_parent_form()

getLimitMenu_max_parent()

This method is inherited from I2CE_FormField->getLimitMenu_max_parent()

getLimitMenu_min_parent()

This method is inherited from I2CE_FormField->getLimitMenu_min_parent()

getLimitMenu_max_parent_form()

This method is inherited from I2CE_FormField->getLimitMenu_max_parent_form()

getLimitMenu_min_parent_form()

This method is inherited from I2CE_FormField->getLimitMenu_min_parent_form()

processLimitMenu_max_parent()

This method is inherited from I2CE_FormField->processLimitMenu_max_parent()

processLimitMenu_min_parent()

This method is inherited from I2CE_FormField->processLimitMenu_min_parent()

processLimitMenu_max_parent_form()

This method is inherited from I2CE_FormField->processLimitMenu_max_parent_form()

processLimitMenu_min_parent_form()

This method is inherited from I2CE_FormField->processLimitMenu_min_parent_form()

save()

This method is inherited from I2CE_FormField->save()

globalFieldUpdate()

This method is inherited from I2CE_FormField->globalFieldUpdate()

populateHistory()

This method is inherited from I2CE_FormField->populateHistory()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()

Inherited Fuzzy CLI Methods

cachedTableReference()

This method is inherited from I2CE_FormField->cachedTableReference()