Class: I2CE FormField MAPPED
From IHRIS Wiki
This article describes the abstract class I2CE_FormField_MAPPED.
- Extends the class: I2CE_FormField_DB_STRING.
- Parent Classses: I2CE_FormField_DB_STRING I2CE_FormField I2CE_Fuzzy
- Child Classes:
- Location: Part of the module Lists in the package I2CE
- Source: Defined in the file modules/Forms/modules/Lists/lib/I2CE_FormField_MAPPED.php
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v3.2.69
@filesource Class I2CE_FormField_MAPPED
Methods
__call()
- Signature: public function __call($method,$params)
- Parameters:
- $method
- $params
_hasMethod()
- Signature: public function _hasMethod($method,$getFuzzy,$returnErrors)
- Parameters:
- $method
- $getFuzzy
- Default Value: false
- $returnErrors
- Default Value: false
_processDOMEditable()
Set up the default editable display for this form field.
- Signature: protected function _processDOMEditable($node,$template,$form_node,$display)
- Parameters:
- $node
- $template
- $form_node
- $display
- Returns: array
of DOMNode
getComponentizedValue()
Componentizes the given $db_value based on component
- Signature: abstract public function getComponentizedValue($db_value,$forms,$component)
- Parameters:
- Returns: string
The componentized db_value
getDefaultDisplayStyle()
- Signature: abstract public function getDefaultDisplayStyle($type)
- Parameters:
- $type
getDisplayedFields()
- Signature: public function getDisplayedFields($type)
- Parameters:
- $type
- Default Value: 'default'
- $type
getDisplayedStyle()
- Signature: public function getDisplayedStyle($type)
- Parameters:
- $type
- Default Value: 'default'
- $type
getFormLimits()
- Signature: public function getFormLimits($type)
- Parameters:
- $type
- Default Value: 'default'
- $type
getFormOrders()
- Signature: public function getFormOrders($type)
- Parameters:
- $type
- Default Value: 'default'
- $type
getMapOptions()
- Signature: public function getMapOptions($type)
- Parameters:
- $type
- Default Value: 'default'
- $type
- Returns: array
where keys are ids, values are arrays with the following keys 'value', 'display', possibly 'title'
getSQLComponentization()
Componentizes the given $db_value based on component
- Signature: abstract public function getSQLComponentization($db_ref,$forms,$component)
- Parameters:
- Returns: string
The componentized db_value
getSelectableForms()
- Signature: public function getSelectableForms()
processDOMEditable()
Set up the default editable display for this form field.
- Signature: public function processDOMEditable($node,$template,$form_node)
- Parameters:
- $node
- $template
- $form_node
- Returns: array
of DOMNode
setValueLookup()
Sets the value of this mapped field from a lookup value. Any linked fields should be known at this point so this should find the correct value.