Class: I2CE FormRelationship Template: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 5: Line 5:


I2CE_FormRelationship_Template
I2CE_FormRelationship_Template
@package I2CE
@subpackage Core
@subpackage Core
 
*Author: Carl Leitner <litlfred@ibiblio.org>
@author Carl Leitner <litlfred@ibiblio.org>
 
@version 2.1
 
@access public
==Variables==
==Variables==
===$templates===
===$templates===

Revision as of 22:12, 16 October 2009

This article desrcibes the class I2CE_FormRelationship_Template which extends the class I2CE_MagicDataTemplate It is contained in the module formRelationships in the package I2CE

The class is defined in the file: modules/Forms/modules/FormRelationship/lib/I2CE_FormRelationship_Template.php

I2CE_FormRelationship_Template @subpackage Core

  • Author: Carl Leitner <litlfred@ibiblio.org>

Variables

$templates

An array of requested relationships templates I2CE_CustomReport_Template indexed by the type and then by name @protected static array $templates

  • Type: static protected $templates

$types

An array index by configTypes. the values are arrays whose keys are fields with values the config types the fields are supposed to have

  • Type: static protected y $types

$blanket

An array with keys config types such that all sub-nodes of a node with this configType will have the configType specified by the value associated to the key

  • Type: static protected y $blanket

$required

an array with keys configTypes with values the required fields for that config type. will cause a failure if not present $var protecected static $required

  • Type: static protected $required

$ensure

  • Type: static protected $ensure

$permissions

  • Type: static protected $permissions

Methods

createExport()

Create an export node by appending on to the given configurationGroup node the values stored in the magic data. keys specifed by the lowest member of $pipe, if it exists. Otherwise, if the pipe is empty or null, we export all keys. Defaults to empty array

  • Signature: public function createExport($configNode,$config,$pipe,$configType,$status)

Parameters:

  • domnode $configNode
    A configurationGroup node.
  • I2CE_MagicDataNode $config
    The data we wish to store at this node
  • mixed $pipe
    A path component or an array of path components relative to the $config. If the pipe is a non-empty array, we export only the
    • Default Value: null
  • string $configType
    Defaults to the empty string. The configuration type to give the configuration node.
    • Default Value:
  • array $status
    An array of status options we should set for this configuration node. Defaults to the empty array
    • Default Value: array()

createExportNodeConfigurationGroup()

Create an configurationGroup node by appending on to the given configurationGroup node the values stored in the magic data at the specified $key. keys specifed by the lowest member of $pipe, if it exists. Otherwise, if the pipe is empty, we export all keys

  • Signature: public function createExportNodeConfigurationGroup($configNode,$config,$pipe,$key,$configType,$status)

Parameters:

  • domnode $configNode
    A configurationGroup node.
  • I2CE_MagicDataNode $config
    The data we wish to store at this node
  • array $pipe
    An array of path components relative to the $config. If the pipe is a non-empty array, we export only the
  • string $key
    The key. (Warning. It assumes it exists in the magic data!)
  • string $configType
    Defaults to the empty string. The configuration type to give the configuration node.
  • array $status
    An array of status options we should set for this configuration node. Defaults to the empty array

getReportForm()

  • Signature: static public function getReportForm($configNode)

Parameters:

  • $configNode

getReportFormNode()

  • Signature: static public function getReportFormNode($configNode)

Parameters:

  • $configNode

getTemplate()

Gets a template. Also caches the results

  • Signature: static public function getTemplate($type,$name)
  • Returns: I2CE_CustomReportTemplate on sucess

Parameters:

  • string $type
    one of report, relationship or reportView. Defaults to null meaning we get everything under /modules/CustomReports
    • Default Value: null
  • string $name
    Defaults to null meaning we get all the <$type>s of the specified name
    • Default Value: null

Inherited Variables

$merges

Theis protected variable is inherited from I2CE_MagicDataTemplate->$merges

$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

processValues_color_triple_hex_single()

This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_hex_single()

processValues_color_triple_hex_many()

This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_hex_many()

processValues_color_triple_rgb_single()

This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_rgb_single()

processValues_color_triple_rgb_many()

This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_rgb_many()

processValues_color_hex_single()

This method is inherited from I2CE_MagicDataTemplate->processValues_color_hex_single()

processValues_color_hex_many()

This method is inherited from I2CE_MagicDataTemplate->processValues_color_hex_many()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()