Class: I2CE Swiss FormRelationship Joins

From IHRIS Wiki
Revision as of 13:11, 19 October 2009 by Litlfred (talk | contribs)

This article describes the class I2CE_Swiss_FormRelationship_Joins.

I2CE_SwissConfig_FormRelationship_Joins

Methods

displayExistingJoins()

Displays the existing joined forms @param mixed $configPath

  • Signature: protected function displayExistingJoins($action,$joins,$contentNode,$transient_options)
  • Parameters:
    • $action
    • $joins
    • DOMNode $contentNode
    • $transient_options
  • Returns: boolean
    true on success

displayJoinMenu()

Add in the UI to select the joinable forms for the specified form

  • Signature: protected function displayJoinMenu($action,$relatedForms,$contentNode)
  • Parameters:
    • $action
    • $relatedForms
    • DOMNode $contentNode
  • Returns: boolean
    true on success

displayValues()

  • Signature: public function displayValues($content_node,$transient_options,$action)
  • Parameters:
    • $content_node
    • $transient_options
    • $action

getChildType()

  • Signature: public function getChildType($child)
  • Parameters:
    • $child

getRelatedForms()

Gets the data on forms related to the specified form

  • Signature: protected function getRelatedForms()
  • Returns: array
    with four keys: 'child','parent', 'parent_field','child_field' each of which has a value an array. the first two have arrays with keys forms and value 'true'. The later two have arrays with keys forms and value an array with keys 'field' and 'formClass'

processValues()

Update config for given values

  • Signature: public function processValues($vals)
  • Parameters:
    • array $vals
      An array of values (presumably from $_POST) to update magic data from
  • Returns: true
    on sucess