Class: I2CE Module TreeSelect: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 3: Line 3:
*Definition in [[#modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php|modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php]]
*Definition in [[#modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php|modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php]]
=modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php=
=modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php=
This article desrcibes the class '''I2CE_Module_TreeSelect''' which extends the class [[Class: I2CE_Module | I2CE_Module]]
This article desrcibes the class '''I2CE_Module_TreeSelect'''.
*Extends the class: [[Class: I2CE_Module | I2CE_Module]].
It is contained in the module [[iHRIS Module List#TreeSelect|TreeSelect]] in the package [https://launchpad.net/i2ce I2CE]
It is contained in the module [[iHRIS Module List#TreeSelect|TreeSelect]] in the package [https://launchpad.net/i2ce I2CE]


Line 39: Line 40:
Parameters:
Parameters:
*$obj  
*$obj  
* [http://www.php.net/manual/en/language.types.string.php string] $tree_id<br/>The id of the tree
* [http://www.php.net/manual/en/language.types.string.php string ] $tree_id<br/>The id of the tree
* [http://www.php.net/manual/en/language.types.array.php array] $tree_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
* [http://www.php.net/manual/en/language.types.array.php array ] $tree_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
**Default Value: array()
**Default Value: array()
* [http://www.php.net/manual/en/language.types.array.php array] $autocomplete_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
* [http://www.php.net/manual/en/language.types.array.php array ] $autocomplete_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
**Default Value: array()
**Default Value: array()
===createTreeData()===
===createTreeData()===
Line 72: Line 73:
This method is inherited from [[Class: I2CE_Fuzzy#userMessage() | I2CE_Fuzzy->userMessage()]]
This method is inherited from [[Class: I2CE_Fuzzy#userMessage() | I2CE_Fuzzy->userMessage()]]
=modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php=
=modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php=
This article desrcibes the class '''I2CE_Module_TreeSelect''' which extends the class [[Class: I2CE_Module | I2CE_Module]]
This article desrcibes the class '''I2CE_Module_TreeSelect'''.
*Extends the class: [[Class: I2CE_Module | I2CE_Module]].
It is contained in the module [[iHRIS Module List#TreeSelect|TreeSelect]] in the package [https://launchpad.net/i2ce I2CE]
It is contained in the module [[iHRIS Module List#TreeSelect|TreeSelect]] in the package [https://launchpad.net/i2ce I2CE]


Line 108: Line 110:
Parameters:
Parameters:
*$obj  
*$obj  
* [http://www.php.net/manual/en/language.types.string.php string] $tree_id<br/>The id of the tree
* [http://www.php.net/manual/en/language.types.string.php string ] $tree_id<br/>The id of the tree
* [http://www.php.net/manual/en/language.types.array.php array] $tree_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
* [http://www.php.net/manual/en/language.types.array.php array ] $tree_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
**Default Value: array()
**Default Value: array()
* [http://www.php.net/manual/en/language.types.array.php array] $autocomplete_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
* [http://www.php.net/manual/en/language.types.array.php array ] $autocomplete_options<br/>Defaults to empty array.  Passed to the javascript formwork constructor.
**Default Value: array()
**Default Value: array()
===createTreeData()===
===createTreeData()===

Revision as of 22:25, 16 October 2009

The class I2CE_Module_TreeSelect contains 2 definitions:

modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php

This article desrcibes the class I2CE_Module_TreeSelect.

It is contained in the module TreeSelect in the package I2CE

The class is defined in the file: modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php

@subpackage core @filesource Class I2CE_Module_TreeSelect

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

Variables

$trees

  • Type: protected $trees

Methods

__construct()

  • Signature: public function __construct()

addAutoCompleteInputTree()

  • Signature: public function addAutoCompleteInputTree($template,$node,$hidden_name,$hidden_id,$selected,$data,$tree_options,$autocomplete_options)

Parameters:

  • $template
  • $node
  • $hidden_name
  • $hidden_id
  • $selected
    • Default Value: null
  • $data
  • $tree_options
    • Default Value: array()
  • $autocomplete_options
    • Default Value: array()

addAutoCompleteInputTreeById()

Adds a auto complete input tree

  • Signature: public function addAutoCompleteInputTreeById($obj,$tree_id,$tree_options,$autocomplete_options)

Parameters:

  • $obj
  • string $tree_id
    The id of the tree
  • array $tree_options
    Defaults to empty array. Passed to the javascript formwork constructor.
    • Default Value: array()
  • array $autocomplete_options
    Defaults to empty array. Passed to the javascript formwork constructor.
    • Default Value: array()

createTreeData()

  • Signature: protected function createTreeData($template,$treeNode,$data)

Parameters:

  • $template
  • $treeNode
  • $data

getHooks()

  • Signature: static public function getHooks()

getMethods()

  • Signature: static public function getMethods()

writeOutJS()

  • Signature: public function writeOutJS($page)

Parameters:

  • $page

Inherited Fuzzy Methods

launchBackgroundProcess()

This method is inherited from I2CE_Module->launchBackgroundProcess()

launchBackgroundPHPScript()

This method is inherited from I2CE_Module->launchBackgroundPHPScript()

launchBackgroundPage()

This method is inherited from I2CE_Module->launchBackgroundPage()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()

modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php

This article desrcibes the class I2CE_Module_TreeSelect.

It is contained in the module TreeSelect in the package I2CE

The class is defined in the file: modules/MooTools/modules/TreeSelect/I2CE_Module_TreeSelect.php

@subpackage core @filesource Class I2CE_Module_TreeSelect

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

Variables

$trees

  • Type: protected $trees

Methods

__construct()

  • Signature: public function __construct()

addAutoCompleteInputTree()

  • Signature: public function addAutoCompleteInputTree($template,$node,$hidden_name,$hidden_id,$selected,$data,$tree_options,$autocomplete_options)

Parameters:

  • $template
  • $node
  • $hidden_name
  • $hidden_id
  • $selected
    • Default Value: null
  • $data
  • $tree_options
    • Default Value: array()
  • $autocomplete_options
    • Default Value: array()

addAutoCompleteInputTreeById()

Adds a auto complete input tree

  • Signature: public function addAutoCompleteInputTreeById($obj,$tree_id,$tree_options,$autocomplete_options)

Parameters:

  • $obj
  • string $tree_id
    The id of the tree
  • array $tree_options
    Defaults to empty array. Passed to the javascript formwork constructor.
    • Default Value: array()
  • array $autocomplete_options
    Defaults to empty array. Passed to the javascript formwork constructor.
    • Default Value: array()

createTreeData()

  • Signature: protected function createTreeData($template,$treeNode,$data)

Parameters:

  • $template
  • $treeNode
  • $data

getHooks()

  • Signature: static public function getHooks()

getMethods()

  • Signature: static public function getMethods()

writeOutJS()

  • Signature: public function writeOutJS($page)

Parameters:

  • $page

Inherited Fuzzy Methods

launchBackgroundProcess()

This method is inherited from I2CE_Module->launchBackgroundProcess()

launchBackgroundPHPScript()

This method is inherited from I2CE_Module->launchBackgroundPHPScript()

launchBackgroundPage()

This method is inherited from I2CE_Module->launchBackgroundPage()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()