Class: I2CE Swiss (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_Swiss}} This article describes the ''abstract'' class ''I2CE_Swiss'' . *Extends the class: I2CE_Fuzzy. *Implemen…')
 
No edit summary
Line 8: Line 8:
*** [[Class: I2CE_Swiss_CustomReports_ReportView_Base (Development) | I2CE_Swiss_CustomReports_ReportView_Base]]
*** [[Class: I2CE_Swiss_CustomReports_ReportView_Base (Development) | I2CE_Swiss_CustomReports_ReportView_Base]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView (Development) | I2CE_Swiss_CustomReports_ReportView]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView (Development) | I2CE_Swiss_CustomReports_ReportView]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView_Displays (Development) | I2CE_Swiss_CustomReports_ReportView_Displays]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView_Field (Development) | I2CE_Swiss_CustomReports_ReportView_Field]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView_Field (Development) | I2CE_Swiss_CustomReports_ReportView_Field]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView_Fields (Development) | I2CE_Swiss_CustomReports_ReportView_Fields]]
**** [[Class: I2CE_Swiss_CustomReports_ReportView_Fields (Development) | I2CE_Swiss_CustomReports_ReportView_Fields]]
Line 24: Line 25:
**** [[Class: I2CE_Swiss_CustomReports_Report_ReportingFunctions (Development) | I2CE_Swiss_CustomReports_Report_ReportingFunctions]]
**** [[Class: I2CE_Swiss_CustomReports_Report_ReportingFunctions (Development) | I2CE_Swiss_CustomReports_Report_ReportingFunctions]]
**** [[Class: I2CE_Swiss_CustomReports_Reports (Development) | I2CE_Swiss_CustomReports_Reports]]
**** [[Class: I2CE_Swiss_CustomReports_Reports (Development) | I2CE_Swiss_CustomReports_Reports]]
** [[Class: I2CE_Swiss_CustomReport_ReportView_ExportEditor (Development) | I2CE_Swiss_CustomReport_ReportView_ExportEditor]]
** [[Class: I2CE_Swiss_XSLT (Development) | I2CE_Swiss_XSLT]]
** [[Class: I2CE_Swiss_XSLTS (Development) | I2CE_Swiss_XSLTS]]
** [[Class: I2CE_Swiss_FormRelationship_Base (Development) | I2CE_Swiss_FormRelationship_Base]]
** [[Class: I2CE_Swiss_FormRelationship_Base (Development) | I2CE_Swiss_FormRelationship_Base]]
*** [[Class: I2CE_Swiss_FormRelationship (Development) | I2CE_Swiss_FormRelationship]]
*** [[Class: I2CE_Swiss_FormRelationship (Development) | I2CE_Swiss_FormRelationship]]
**** [[Class: I2CE_Swiss_FormRelationship_Join (Development) | I2CE_Swiss_FormRelationship_Join]]
**** [[Class: I2CE_Swiss_FormRelationship_Join (Development) | I2CE_Swiss_FormRelationship_Join]]
*** [[Class: I2CE_Swiss_FormRelationship_AncestralCondition (Development) | I2CE_Swiss_FormRelationship_AncestralCondition]]
*** [[Class: I2CE_Swiss_FormRelationship_AncestralConditions (Development) | I2CE_Swiss_FormRelationship_AncestralConditions]]
*** [[Class: I2CE_Swiss_FormRelationship_Joins (Development) | I2CE_Swiss_FormRelationship_Joins]]
*** [[Class: I2CE_Swiss_FormRelationship_Joins (Development) | I2CE_Swiss_FormRelationship_Joins]]
*** [[Class: I2CE_Swiss_FormRelationship_ReportingFunctions (Development) | I2CE_Swiss_FormRelationship_ReportingFunctions]]
*** [[Class: I2CE_Swiss_FormRelationship_ReportingFunctions (Development) | I2CE_Swiss_FormRelationship_ReportingFunctions]]
Line 87: Line 93:
**$create_if_not_exists  
**$create_if_not_exists  
===addAjaxLink()===
===addAjaxLink()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L412 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 412
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L417 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 417
*Signature: public function addAjaxLink($link_name,$source_id,$target_id,$node,$action,$transient_options)
*Signature: public function addAjaxLink($link_name,$source_id,$target_id,$node,$action,$transient_options)
*Parameters:
*Parameters:
Line 98: Line 104:
***Default Value: array()   
***Default Value: array()   
===addAjaxOptionMenu()===
===addAjaxOptionMenu()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L497 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 497
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L502 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 502
*Signature: protected function addAjaxOptionMenu($input_id,$replace_container_id,$contentNode)
*Signature: protected function addAjaxOptionMenu($input_id,$replace_container_id,$contentNode)
*Parameters:
*Parameters:
Line 105: Line 111:
**$contentNode  
**$contentNode  
===addLink()===
===addLink()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L408 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 408
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L413 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 413
*Signature: public function addLink($source_id,$target_id,$node,$action,$transient_options)
*Signature: public function addLink($source_id,$target_id,$node,$action,$transient_options)
*Parameters:
*Parameters:
Line 115: Line 121:
***Default Value: array()   
***Default Value: array()   
===addOptionMenu()===
===addOptionMenu()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L492 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 492
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L497 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 497
*Signature: protected function addOptionMenu($input_id,$contentNode)
*Signature: protected function addOptionMenu($input_id,$contentNode)
*Parameters:
*Parameters:
Line 121: Line 127:
**$contentNode  
**$contentNode  
===changeClassOnNodes()===
===changeClassOnNodes()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L542 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 542
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L547 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 547
*Signature: protected function changeClassOnNodes($old,$new,$node)
*Signature: protected function changeClassOnNodes($old,$new,$node)
*Parameters:
*Parameters:
Line 128: Line 134:
**$node  
**$node  
===count()===
===count()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L653 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 653
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L658 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 658
*Signature: public function count()
*Signature: public function count()
===createIfNotExists()===
===createIfNotExists()===
Line 138: Line 144:
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]
===current()===
===current()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L630 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 630
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L635 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 635
*Signature: public function current()
*Signature: public function current()
===display()===
===display()===
Line 194: Line 200:
*Signature: public function getFactory()
*Signature: public function getFactory()
===getField()===
===getField()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L580 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 580
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L585 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 585
*Signature: public function getField($field)
*Signature: public function getField($field)
*Parameters:
*Parameters:
Line 202: Line 208:
*Signature: public function getKeys()
*Signature: public function getKeys()
===getLocale()===
===getLocale()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L614 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 614
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L619 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 619
*Signature: public function getLocale()
*Signature: public function getLocale()
===getName()===
===getName()===
Line 249: Line 255:
**$attr  
**$attr  
===hasField()===
===hasField()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L556 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 556
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L561 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 561
*Signature: public function hasField($field)
*Signature: public function hasField($field)
*Parameters:
*Parameters:
Line 269: Line 275:
**$action  
**$action  
===key()===
===key()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L634 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 634
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L639 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 639
*Signature: public function key()
*Signature: public function key()
===next()===
===next()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L638 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 638
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L643 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 643
*Signature: public function next()
*Signature: public function next()
===postprocessDisplay()===
===postprocessDisplay()===
Line 304: Line 310:
***Default Value: false
***Default Value: false
===rewind()===
===rewind()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L641 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 641
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L646 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 646
*Signature: public function rewind()
*Signature: public function rewind()
===setField()===
===setField()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L564 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 564
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L569 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 569
*Signature: public function setField($field,$value)
*Signature: public function setField($field,$value)
*Parameters:
*Parameters:
Line 318: Line 324:
**$page  
**$page  
===setTranslatableField()===
===setTranslatableField()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L593 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 593
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L598 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 598
*Signature: public function setTranslatableField($field,$value)
*Signature: public function setTranslatableField($field,$value)
*Parameters:
*Parameters:
Line 331: Line 337:
*Returns: true<br/>on sucess
*Returns: true<br/>on sucess
===valid()===
===valid()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L644 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 644
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_Swiss.php#L649 i2ce/modules/SwissFactory/lib/I2CE_Swiss.php] on line 649
*Signature: public function valid()
*Signature: public function valid()
===validateValues()===
===validateValues()===

Revision as of 08:58, 3 August 2010


This article describes the abstract class I2CE_Swiss .

I2CE_Swiss

Variables

$name

$path

$parent

$page

$template

$children

Methods

__construct()

Constructor @param I2CE_MagicDataNode the storage for this swiss

  • Defined in i2ce/modules/SwissFactory/lib/I2CE_Swiss.php on line 61
  • Signature: public function __construct($storage,$factory,$name,$parent)
  • Parameters:
    • $storage
    • $factory
    • $name
      • Default Value: null
    • $parent
      • Default Value: null

_getChild()

Should not be called outside of getChild()

addAjaxLink()

  • Defined in i2ce/modules/SwissFactory/lib/I2CE_Swiss.php on line 417
  • Signature: public function addAjaxLink($link_name,$source_id,$target_id,$node,$action,$transient_options)
  • Parameters:
    • $link_name
    • $source_id
    • $target_id
    • $node
    • $action
    • $transient_options
      • Default Value: array()

addAjaxOptionMenu()

addLink()

  • Defined in i2ce/modules/SwissFactory/lib/I2CE_Swiss.php on line 413
  • Signature: public function addLink($source_id,$target_id,$node,$action,$transient_options)
  • Parameters:
    • $source_id
    • $target_id
    • $node
    • $action
    • $transient_options
      • Default Value: array()

addOptionMenu()

changeClassOnNodes()

count()

createIfNotExists()

Check to see if a magic data subnode $child should be created if it does not exist

current()

display()

displayOptions()

displayValues()

Display the configuration menu for the specified config node

getAjaxJSNodes()

getAttribute()

getChild()

getChildNames()

getChildType()

getDescription()

getDisplayName()

getFactory()

getField()

getKeys()

getLocale()

getName()

getPage()

getParent()

getPath()

getStatus()

getStorage()

Get the storage for this class @retursn I2CE_MaficDataNode

getURLQueryString()

getURLRoot()

hasAttribute()

hasField()

hasParent()

humanText()

Tries to turn a string (such as a magic data key) into human text @param $text

initializeDisplay()

key()

next()

postprocessDisplay()

prefixName()

processValues()

renameInputs()

  • Defined in i2ce/modules/SwissFactory/lib/I2CE_Swiss.php on line 348
  • Signature: public function renameInputs($names,$node,$name_prefix,$name_postfix,$also_id)
  • Parameters:
    • $names
    • $node
    • $name_prefix
      • Default Value:
    • $name_postfix
      • Default Value:
    • $also_id
      • Default Value: false

rewind()

setField()

setPage()

setTranslatableField()

updateValues()

Update values @param string $linkBase The base page link used to export the magic data to a magicdatatemplate for validation. Should be a page which which subclasses I2CE_Page_MagicDataExport. @param integer $pipe The pipe length used for the magic data export. Defaults to -1 @param boolean $transact. Defaults to true -- all the SQL statements of this save should be wrapped in a transaction if possible. On failure we rollback the transaction and clear the apc cache for the magic data

valid()

validateValues()

Inherited Methods

_hasMethod()

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

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()