Class: I2CE MagicDataTemplate (Development): Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
 
Line 7: Line 7:
** [[Class: I2CE_FormRelationship_Template (Development) | I2CE_FormRelationship_Template]]
** [[Class: I2CE_FormRelationship_Template (Development) | I2CE_FormRelationship_Template]]
** [[Class: I2CE_MagicDataExport_Template (Development) | I2CE_MagicDataExport_Template]]
** [[Class: I2CE_MagicDataExport_Template (Development) | I2CE_MagicDataExport_Template]]
*Location: Part of the module [[I2CE Module List (Development)#I2CE|I2CE]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
*Location: Part of the module [[I2CE Module List (Development)#I2CE|I2CE]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L39 lib/I2CE_MagicDataTemplate.php] on line 39
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L39 lib/I2CE_MagicDataTemplate.php] on line 39
I2CE_MagicDataTemplate  @todo Better documentation.
I2CE_MagicDataTemplate  @todo Better documentation.
==Variables==
==Variables==
===$merges===
===$merges===
$var protected array $merges;
$var protected array $merges;
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L233 i2ce/lib/I2CE_MagicDataTemplate.php] on line 233
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L239 i2ce/lib/I2CE_MagicDataTemplate.php] on line 239
*Type: protected $merges
*Type: protected $merges
===$meta_config===
.  The magic data node for the meta configuration.  Gets set in the {@see getConfigMetaData()} call *
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L708 i2ce/lib/I2CE_MagicDataTemplate.php] on line 708
*Type: protected [[Class: I2CE_MagicDataNode (Development) | I2CE_MagicDataNode]] $meta_config


==Methods==
==Methods==
===__construct()===
===__construct()===
I2CE_Template constructor method. This constructor sets up the basic variables for all I2CE_Template objects.
I2CE_Template constructor method. This constructor sets up the basic variables for all I2CE_Template objects.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L87 i2ce/lib/I2CE_MagicDataTemplate.php] on line 87
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L87 i2ce/lib/I2CE_MagicDataTemplate.php] on line 87
*Signature: public function __construct()
*Signature: public function __construct()
===getConfigMetaData()===
===getConfigMetaData()===
Gets the metadata of this config file in storage
Gets the metadata of this config file in storage
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L683 i2ce/lib/I2CE_MagicDataTemplate.php] on line 683
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L716 i2ce/lib/I2CE_MagicDataTemplate.php] on line 716
*Signature: public function getConfigMetaData($storage)
*Signature: public function getConfigMetaData($storage)
*Parameters:
*Parameters:
Line 31: Line 36:
===getConfigPath()===
===getConfigPath()===
Get the path to the current node in the configuration file. Used for error reporting. @param $node DOMElement
Get the path to the current node in the configuration file. Used for error reporting. @param $node DOMElement
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L318 i2ce/lib/I2CE_MagicDataTemplate.php] on line 318
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L324 i2ce/lib/I2CE_MagicDataTemplate.php] on line 324
*Signature: protected function getConfigPath($node)
*Signature: protected function getConfigPath($node)
*Parameters:
*Parameters:
Line 38: Line 43:
===getConfigurationTextContent()===
===getConfigurationTextContent()===
Get the value in the <value> tag of a subnode specfiied by the  name attribute
Get the value in the <value> tag of a subnode specfiied by the  name attribute
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L69 i2ce/lib/I2CE_MagicDataTemplate.php] on line 69
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L69 i2ce/lib/I2CE_MagicDataTemplate.php] on line 69
*Signature: public function getConfigurationTextContent($nodeName,$node,$which)
*Signature: public function getConfigurationTextContent($nodeName,$node,$which)
*Parameters:
*Parameters:
Line 49: Line 54:
===getDefaultStatus()===
===getDefaultStatus()===
Get the default status variables.
Get the default status variables.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L98 i2ce/lib/I2CE_MagicDataTemplate.php] on line 98
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L98 i2ce/lib/I2CE_MagicDataTemplate.php] on line 98
*Signature: public function getDefaultStatus()
*Signature: public function getDefaultStatus()
===getMerges()===
===getMerges()===
Get the magic data paths whose status we are tracking. $retrurns array.  Keys are paths values are the mergetype
Get the magic data paths whose status we are tracking. $retrurns array.  Keys are paths values are the mergetype
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L226 i2ce/lib/I2CE_MagicDataTemplate.php] on line 226
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L232 i2ce/lib/I2CE_MagicDataTemplate.php] on line 232
*Signature: public function getMerges()
*Signature: public function getMerges()
===getTextContent()===
===getTextContent()===
Get the text content of a node  specified by its tag name
Get the text content of a node  specified by its tag name
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L49 i2ce/lib/I2CE_MagicDataTemplate.php] on line 49
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L49 i2ce/lib/I2CE_MagicDataTemplate.php] on line 49
*Signature: public function getTextContent($name,$node,$which)
*Signature: public function getTextContent($name,$node,$which)
*Parameters:
*Parameters:
Line 66: Line 71:
***Default Value: 0
***Default Value: 0
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]<br/>string on sucess, null on failure
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]<br/>string on sucess, null on failure
===processErasers()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L832 i2ce/lib/I2CE_MagicDataTemplate.php] on line 832
*Signature: protected function processErasers($node,$current_path)
*Parameters:
**$node
**$current_path
***Default Value: array()
===processStatus()===
===processStatus()===
Assumes that the template is valid. Set the status variables according to this node
Assumes that the template is valid. Set the status variables according to this node
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L122 i2ce/lib/I2CE_MagicDataTemplate.php] on line 122
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L122 i2ce/lib/I2CE_MagicDataTemplate.php] on line 122
*Signature: public function processStatus($configNode,$currentStatus,$vers)
*Signature: public function processStatus($configNode,$currentStatus,$vers)
*Parameters:
*Parameters:
Line 78: Line 90:
===processValues()===
===processValues()===
Process values for a config node @param I2CE_MagicDataNode $data @param string $version .  Defaults to '0' .  The version of the currently loaded data in $storage responsible for this XML @param array of string $paths -- the current path into the $storage that we are using.  Defaults to the empty array().
Process values for a config node @param I2CE_MagicDataNode $data @param string $version .  Defaults to '0' .  The version of the currently loaded data in $storage responsible for this XML @param array of string $paths -- the current path into the $storage that we are using.  Defaults to the empty array().
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L347 i2ce/lib/I2CE_MagicDataTemplate.php] on line 347
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L353 i2ce/lib/I2CE_MagicDataTemplate.php] on line 353
*Signature: public function processValues($configNode,$storage,$status,$vers,$paths)
*Signature: public function processValues($configNode,$storage,$status,$vers,$paths)
*Parameters:
*Parameters:
Line 90: Line 102:
===processValues_boolean_single()===
===processValues_boolean_single()===
Process the value of a configuration of type boolean and single valued
Process the value of a configuration of type boolean and single valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L573 i2ce/lib/I2CE_MagicDataTemplate.php] on line 573
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L599 i2ce/lib/I2CE_MagicDataTemplate.php] on line 599
*Signature: protected function processValues_boolean_single($value,$status)
*Signature: protected function processValues_boolean_single($value,$status)
*Parameters:
*Parameters:
Line 98: Line 110:
===processValues_delimited_many()===
===processValues_delimited_many()===
Process the value of a configuration of type delimited and many valued
Process the value of a configuration of type delimited and many valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L656 i2ce/lib/I2CE_MagicDataTemplate.php] on line 656
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L682 i2ce/lib/I2CE_MagicDataTemplate.php] on line 682
*Signature: protected function processValues_delimited_many($valueList,$status)
*Signature: protected function processValues_delimited_many($valueList,$status)
*Parameters:
*Parameters:
Line 106: Line 118:
===processValues_delimited_single()===
===processValues_delimited_single()===
Process the value of a configuration of type delimited and single valued
Process the value of a configuration of type delimited and single valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L627 i2ce/lib/I2CE_MagicDataTemplate.php] on line 627
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L653 i2ce/lib/I2CE_MagicDataTemplate.php] on line 653
*Signature: protected function processValues_delimited_single($value,$status)
*Signature: protected function processValues_delimited_single($value,$status)
*Parameters:
*Parameters:
Line 114: Line 126:
===processValues_list_many()===
===processValues_list_many()===
Process the value of a configuration of type list and many valued @param array $valueList
Process the value of a configuration of type list and many valued @param array $valueList
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L602 i2ce/lib/I2CE_MagicDataTemplate.php] on line 602
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L628 i2ce/lib/I2CE_MagicDataTemplate.php] on line 628
*Signature: protected function processValues_list_many($value,$status)
*Signature: protected function processValues_list_many($value,$status)
*Parameters:
*Parameters:
Line 122: Line 134:
===processValues_list_single()===
===processValues_list_single()===
Process the value of a configuration of type list and single valued
Process the value of a configuration of type list and single valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L584 i2ce/lib/I2CE_MagicDataTemplate.php] on line 584
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L610 i2ce/lib/I2CE_MagicDataTemplate.php] on line 610
*Signature: protected function processValues_list_single($value,$status)
*Signature: protected function processValues_list_single($value,$status)
*Parameters:
*Parameters:
Line 130: Line 142:
===processValues_string_many()===
===processValues_string_many()===
Process the value of a configuration of type string and many valued
Process the value of a configuration of type string and many valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L562 i2ce/lib/I2CE_MagicDataTemplate.php] on line 562
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L588 i2ce/lib/I2CE_MagicDataTemplate.php] on line 588
*Signature: protected function processValues_string_many($valueList,$status)
*Signature: protected function processValues_string_many($valueList,$status)
*Parameters:
*Parameters:
Line 138: Line 150:
===processValues_string_single()===
===processValues_string_single()===
Process the value of a configuration of type string and single valued
Process the value of a configuration of type string and single valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L551 i2ce/lib/I2CE_MagicDataTemplate.php] on line 551
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L577 i2ce/lib/I2CE_MagicDataTemplate.php] on line 577
*Signature: protected function processValues_string_single($value,$status)
*Signature: protected function processValues_string_single($value,$status)
*Parameters:
*Parameters:
Line 144: Line 156:
** [http://www.php.net/manual/en/language.types.array.php array ] $status
** [http://www.php.net/manual/en/language.types.array.php array ] $status
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]
===setAttributeOnChildren()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L539 i2ce/lib/I2CE_MagicDataTemplate.php] on line 539
*Signature: protected function setAttributeOnChildren($attr,$attr_val,$storage,$children)
*Parameters:
**$attr
**$attr_val
**$storage
**$children
===setConfigValues()===
===setConfigValues()===
Sets the config values from the magic data template @param string $version .  Defaults to '0' .  The version of the currently loaded data in $storage responsible for this XML @param array of string $paths -- the current path into the $storage that we are using.  Defaults to the empty array().
Sets the config values from the magic data template @param string $version .  Defaults to '0' .  The version of the currently loaded data in $storage responsible for this XML @param array of string $paths -- the current path into the $storage that we are using.  Defaults to the empty array().
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L247 i2ce/lib/I2CE_MagicDataTemplate.php] on line 247
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L253 i2ce/lib/I2CE_MagicDataTemplate.php] on line 253
*Signature: public function setConfigValues($config_group,$storage,$status,$vers,$paths)
*Signature: public function setConfigValues($config_group,$storage,$status,$vers,$paths)
*Parameters:
*Parameters:
Line 158: Line 178:
*Returns: boolean.<br/>Returns true on sucess.  False if there was some data that needs to be set in the administration/configuration page.
*Returns: boolean.<br/>Returns true on sucess.  False if there was some data that needs to be set in the administration/configuration page.
===traversePaths()===
===traversePaths()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L327 i2ce/lib/I2CE_MagicDataTemplate.php] on line 327
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L333 i2ce/lib/I2CE_MagicDataTemplate.php] on line 333
*Signature: protected function traversePaths($storage,$paths)
*Signature: protected function traversePaths($storage,$paths)
*Parameters:
*Parameters:
**$storage  
**$storage  
**$paths  
**$paths  
===updateClassPath()===
===updateMetaDataPaths()===
Update the storage object with the classfile and default classpath. @param $storage I2CE_MagicDataNode @param $module  string containing the short module name.
Update the storage object with the classfile and default classpath. @param $storage I2CE_MagicDataNode @param $module  string containing the short module name.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L838 i2ce/lib/I2CE_MagicDataTemplate.php] on line 838
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L932 i2ce/lib/I2CE_MagicDataTemplate.php] on line 932
*Signature: protected function updateClassPath($storage,$module)
*Signature: protected function updateMetaDataPaths()
*Parameters:
**$storage
***Default Value: NULL
**$module
***Default Value: NULL
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>TRUE for success
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>TRUE for success
===updatePaths()===
===updatePaths()===
Update the list of path elements in MagicData based on attributes of the element passed in: path  Contents of this attribute specify an explicit path name  If no path element is used then the contents of the name attribute are added to the path. @param $node DOMElement @param $paths array of strings
Update the list of path elements in MagicData based on attributes of the element passed in: path  Contents of this attribute specify an explicit path name  If no path element is used then the contents of the name attribute are added to the path. @param $node DOMElement @param $paths array of strings
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L282 i2ce/lib/I2CE_MagicDataTemplate.php] on line 282
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L291 i2ce/lib/I2CE_MagicDataTemplate.php] on line 291
*Signature: protected function updatePaths($node,$paths)
*Signature: protected function updatePaths($node,$paths)
*Parameters:
*Parameters:
Line 184: Line 199:
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>TRUE if no error.
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>TRUE if no error.
===validate()===
===validate()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L112 i2ce/lib/I2CE_MagicDataTemplate.php] on line 112
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L112 i2ce/lib/I2CE_MagicDataTemplate.php] on line 112
*Signature: public function validate()
*Signature: public function validate()
===validateValues_string_single()===
===validateValues_string_single()===
Valiedates the value of a configuration of type string and single valued
Valiedates the value of a configuration of type string and single valued
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L532 i2ce/lib/I2CE_MagicDataTemplate.php] on line 532
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_MagicDataTemplate.php#L558 i2ce/lib/I2CE_MagicDataTemplate.php] on line 558
*Signature: protected function validateValues_string_single($value,$status)
*Signature: protected function validateValues_string_single($value,$status)
*Parameters:
*Parameters:
Line 195: Line 210:
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]
==Inherited Methods==
==Inherited Methods==
===addAnchorIdByName()===
This public method is inherited from [[Class: I2CE_TemplateMeister (Development)#addAnchorIdByName() | I2CE_TemplateMeister->addAnchorIdByName()]]
===addFile()===
===addFile()===
This public method is inherited from [[Class: I2CE_TemplateMeister (Development)#addFile() | I2CE_TemplateMeister->addFile()]]
This public method is inherited from [[Class: I2CE_TemplateMeister (Development)#addFile() | I2CE_TemplateMeister->addFile()]]

Latest revision as of 08:15, 6 May 2015


This article describes the class I2CE_MagicDataTemplate .

I2CE_MagicDataTemplate @todo Better documentation.

Variables

$merges

$var protected array $merges;

$meta_config

. The magic data node for the meta configuration. Gets set in the {@see getConfigMetaData()} call *

Methods

__construct()

I2CE_Template constructor method. This constructor sets up the basic variables for all I2CE_Template objects.

getConfigMetaData()

Gets the metadata of this config file in storage

getConfigPath()

Get the path to the current node in the configuration file. Used for error reporting. @param $node DOMElement

getConfigurationTextContent()

Get the value in the <value> tag of a subnode specfiied by the name attribute

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 69
  • Signature: public function getConfigurationTextContent($nodeName,$node,$which)
  • Parameters:
    • string $nodeName
    • DOMNode $node
      The node we wish to search under. Defaults to null meaning we search from the top node.
      • Default Value: null
    • int $which
      Which result we want. Defaults to zero
      • Default Value: 0
  • Returns: mixed.
    Null on failure, a string (the content) on sucess

getDefaultStatus()

Get the default status variables.

getMerges()

Get the magic data paths whose status we are tracking. $retrurns array. Keys are paths values are the mergetype

getTextContent()

Get the text content of a node specified by its tag name

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 49
  • Signature: public function getTextContent($name,$node,$which)
  • Parameters:
    • string $name
      the name of the node we wish to find the text content for
    • DOMNode $node
      The node we wish to search under. Defaults to null meaning we search from the top node.
      • Default Value: null
    • int $which
      Which result we want. Defaults to zero.
      • Default Value: 0
  • Returns: mixed
    string on sucess, null on failure

processErasers()

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 832
  • Signature: protected function processErasers($node,$current_path)
  • Parameters:
    • $node
    • $current_path
      • Default Value: array()

processStatus()

Assumes that the template is valid. Set the status variables according to this node

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 122
  • Signature: public function processStatus($configNode,$currentStatus,$vers)
  • Parameters:
    • DOMNode $configNode
      A configuration or conigurationGroup node
    • $currentStatus
      • Default Value: null
    • $vers
      • Default Value: '0'

processValues()

Process values for a config node @param I2CE_MagicDataNode $data @param string $version . Defaults to '0' . The version of the currently loaded data in $storage responsible for this XML @param array of string $paths -- the current path into the $storage that we are using. Defaults to the empty array().

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 353
  • Signature: public function processValues($configNode,$storage,$status,$vers,$paths)
  • Parameters:
    • DOMNode $configNode
    • $storage
    • array $status
      If null, it defaults to the array set by getDefaultStatus(). The current status (of parent node)
      • Default Value: null
    • $vers
    • $paths
  • Returns: boolean.
    true on sucess

processValues_boolean_single()

Process the value of a configuration of type boolean and single valued

processValues_delimited_many()

Process the value of a configuration of type delimited and many valued

processValues_delimited_single()

Process the value of a configuration of type delimited and single valued

processValues_list_many()

Process the value of a configuration of type list and many valued @param array $valueList

processValues_list_single()

Process the value of a configuration of type list and single valued

processValues_string_many()

Process the value of a configuration of type string and many valued

processValues_string_single()

Process the value of a configuration of type string and single valued

setAttributeOnChildren()

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 539
  • Signature: protected function setAttributeOnChildren($attr,$attr_val,$storage,$children)
  • Parameters:
    • $attr
    • $attr_val
    • $storage
    • $children

setConfigValues()

Sets the config values from the magic data template @param string $version . Defaults to '0' . The version of the currently loaded data in $storage responsible for this XML @param array of string $paths -- the current path into the $storage that we are using. Defaults to the empty array().

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 253
  • Signature: public function setConfigValues($config_group,$storage,$status,$vers,$paths)
  • Parameters:
    • DOMNode $config_group
      DomNode of <configurationGroup>
    • I2CE_MagicData $storage
    • array $status
    • $vers
      • Default Value: '0'
    • $paths
      • Default Value: array()
  • Returns: boolean.
    Returns true on sucess. False if there was some data that needs to be set in the administration/configuration page.

traversePaths()

updateMetaDataPaths()

Update the storage object with the classfile and default classpath. @param $storage I2CE_MagicDataNode @param $module string containing the short module name.

updatePaths()

Update the list of path elements in MagicData based on attributes of the element passed in: path Contents of this attribute specify an explicit path name If no path element is used then the contents of the name attribute are added to the path. @param $node DOMElement @param $paths array of strings

  • Defined in i2ce/lib/I2CE_MagicDataTemplate.php on line 291
  • Signature: protected function updatePaths($node,$paths)
  • Parameters:
    • $node
      • Default Value: NULL
    • &$paths
      • Default Value: NULL
  • Returns: boolean
    TRUE if no error.

validate()

validateValues_string_single()

Valiedates the value of a configuration of type string and single valued

Inherited Methods

addAnchorIdByName()

This public method is inherited from I2CE_TemplateMeister->addAnchorIdByName()

addFile()

This public method is inherited from I2CE_TemplateMeister->addFile()

addHeader()

This public method is inherited from I2CE_TemplateMeister->addHeader()

addText()

This public method is inherited from I2CE_TemplateMeister->addText()

addTextNode()

This public method is inherited from I2CE_TemplateMeister->addTextNode()

appendElementById()

This public method is inherited from I2CE_TemplateMeister->appendElementById()

appendElementByNode()

This public method is inherited from I2CE_TemplateMeister->appendElementByNode()

appendFileById()

This public method is inherited from I2CE_TemplateMeister->appendFileById()

appendFileByName()

This public method is inherited from I2CE_TemplateMeister->appendFileByName()

appendFileByNode()

This public method is inherited from I2CE_TemplateMeister->appendFileByNode()

appendNode()

This public method is inherited from I2CE_TemplateMeister->appendNode()

appendNodeById()

This public method is inherited from I2CE_TemplateMeister->appendNodeById()

appendNodeByName()

This public method is inherited from I2CE_TemplateMeister->appendNodeByName()

appendNodesByName()

This public method is inherited from I2CE_TemplateMeister->appendNodesByName()

appendTextById()

This public method is inherited from I2CE_TemplateMeister->appendTextById()

appendTextByName()

This public method is inherited from I2CE_TemplateMeister->appendTextByName()

changeAttributesOnNodes()

This public method is inherited from I2CE_TemplateMeister->changeAttributesOnNodes()

clearHeaders()

This public method is inherited from I2CE_TemplateMeister->clearHeaders()

createElement()

This public method is inherited from I2CE_TemplateMeister->createElement()

createTextNode()

This public method is inherited from I2CE_TemplateMeister->createTextNode()

evaluate()

This public method is inherited from I2CE_TemplateMeister->evaluate()

findAndRemoveNodes()

This public method is inherited from I2CE_TemplateMeister->findAndRemoveNodes()

findTemplate()

This public method is inherited from I2CE_TemplateMeister->findTemplate()

getDisplay()

This public method is inherited from I2CE_TemplateMeister->getDisplay()

getDoc()

This public method is inherited from I2CE_TemplateMeister->getDoc()

getElementById()

This public method is inherited from I2CE_TemplateMeister->getElementById()

getElementByName()

This public method is inherited from I2CE_TemplateMeister->getElementByName()

getElementByTagName()

This public method is inherited from I2CE_TemplateMeister->getElementByTagName()

getHeaders()

This public method is inherited from I2CE_TemplateMeister->getHeaders()

getUser()

This public method is inherited from I2CE_TemplateMeister->getUser()

importText()

This public method is inherited from I2CE_TemplateMeister->importText()

loadFile()

This public method is inherited from I2CE_TemplateMeister->loadFile()

loadRootFile()

This public method is inherited from I2CE_TemplateMeister->loadRootFile()

loadRootText()

This public method is inherited from I2CE_TemplateMeister->loadRootText()

prepareDisplay()

This public method is inherited from I2CE_TemplateMeister->prepareDisplay()

processArgs()

This public method is inherited from I2CE_TemplateMeister->processArgs()

query()

This public method is inherited from I2CE_TemplateMeister->query()

reIdNodes()

This public method is inherited from I2CE_TemplateMeister->reIdNodes()

removeNode()

This public method is inherited from I2CE_TemplateMeister->removeNode()

removeNodeById()

This public method is inherited from I2CE_TemplateMeister->removeNodeById()

renameNodes()

This public method is inherited from I2CE_TemplateMeister->renameNodes()

replaceNode()

This public method is inherited from I2CE_TemplateMeister->replaceNode()

setAttribute()

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

setLoadOptions()

This public method is inherited from I2CE_TemplateMeister->setLoadOptions()

setNodeAttribute()

This public method is inherited from I2CE_TemplateMeister->setNodeAttribute()

setUser()

This public method is inherited from I2CE_TemplateMeister->setUser()

setVerboseErrors()

This public method is inherited from I2CE_TemplateMeister->setVerboseErrors()

setWorkingDir()

This public method is inherited from I2CE_TemplateMeister->setWorkingDir()

xmlError()

This public method is inherited from I2CE_TemplateMeister->xmlError()

_loadFile()

This protected method is inherited from I2CE_TemplateMeister->_loadFile()

_loadText()

This protected method is inherited from I2CE_TemplateMeister->_loadText()

raiseError()

This protected method is inherited from I2CE_TemplateMeister->raiseError()

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Variables

$doc

Theis public variable is inherited from I2CE_TemplateMeister->$doc

$xpath

Theis protected variable is inherited from I2CE_TemplateMeister->$xpath

$user

Theis protected variable is inherited from I2CE_TemplateMeister->$user

$working_dir

Theis protected variable is inherited from I2CE_TemplateMeister->$working_dir

$loadOptions

Theis protected variable is inherited from I2CE_TemplateMeister->$loadOptions

$headers

Theis protected variable is inherited from I2CE_TemplateMeister->$headers

$verboseErrors

Theis protected variable is inherited from I2CE_TemplateMeister->$verboseErrors

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()

Fuzzy Methods

processValues_color_triple_hex_single()

This method is implemented by I2CE_Module_ColorPicker->processValues_color_triple_hex_single()

processValues_color_triple_hex_many()

This method is implemented by I2CE_Module_ColorPicker->processValues_color_triple_hex_many()

processValues_color_triple_rgb_single()

This method is implemented by I2CE_Module_ColorPicker->processValues_color_triple_rgb_single()

processValues_color_triple_rgb_many()

This method is implemented by I2CE_Module_ColorPicker->processValues_color_triple_rgb_many()

processValues_color_hex_single()

This method is implemented by I2CE_Module_ColorPicker->processValues_color_hex_single()

processValues_color_hex_many()

This method is implemented by I2CE_Module_ColorPicker->processValues_color_hex_many()