ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTaxSelectInputGUI Class Reference

Select taxonomy nodes input GUI. More...

+ Inheritance diagram for ilTaxSelectInputGUI:
+ Collaboration diagram for ilTaxSelectInputGUI:

Public Member Functions

 __construct ($a_taxonomy_id, $a_postvar, $a_multi=false)
 Constructor.
 setTaxonomyId ($a_val)
 Set taxonomy id.
 getTaxonomyId ()
 Get taxonomy id.
 getTitleForNodeId ($a_id)
 Get title for node id (needs to be overwritten, if explorer is not a tree eplorer.
- Public Member Functions inherited from ilExplorerSelectInputGUI
 __construct ($a_title, $a_postvar, $a_explorer_gui, $a_multi=false)
 Constructor.
 getExplHandleCmd ()
 Get explorer handle command function.
 handleExplorerCommand ()
 Handle explorer command.
 setValue ($a_value)
 Set Value.
 getValue ()
 Get Value.
 setValueByArray ($a_values)
 Set value by array.
 checkInput ()
 Check input, strip slashes etc.
 render ($a_mode="property_form")
 Render item.
 insert (&$a_tpl)
 Insert property html.
 getTableFilterHTML ()
 Get HTML for table filter.
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
executeCommand ()
 Execute command.
 getType ()
 Get Type.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setPostVar ($a_postvar)
 Set Post Variable.
 getPostVar ()
 Get Post Variable.
 getFieldId ()
 Get Post Variable.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setAlert ($a_alert)
 Set Alert Text.
 getAlert ()
 Get Alert Text.
 setRequired ($a_required)
 Set Required.
 getRequired ()
 Get Required.
 setDisabled ($a_disabled)
 Set Disabled.
 getDisabled ()
 Get Disabled.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setParent ($a_val)
 Set Parent GUI object.
 getParent ()
 Get Parent GUI object.
 getSubForm ()
 Get sub form html.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 getItemByPostVar ($a_post_var)
 Get item by post var.
 serializeData ()
 serialize data
 unserializeData ($a_data)
 unserialize data
 writeToSession ()
 Write to session.
 clearFromSession ()
 Clear session value.
 readFromSession ()
 Read from session.
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties)
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi.
 getMulti ()
 Get Multi.
 setMultiValues (array $a_values)
 Set multi values.
 getMultiValues ()
 Get multi values.
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g.

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
 getMultiIconsHTML ()
 Get HTML for multiple value icons.
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 $title
 $postvar
 $info
 $alert
 $required = false
 $parentgui
 $parentform
 $hidden_title = ""
 $multi = false
 $multi_sortable = false
 $multi_addremove = true
 $multi_values

Detailed Description

Select taxonomy nodes input GUI.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$ ilTaxSelectInputGUI: ilFormPropertyDispatchGUI

Definition at line 17 of file class.ilTaxSelectInputGUI.php.

Constructor & Destructor Documentation

ilTaxSelectInputGUI::__construct (   $a_taxonomy_id,
  $a_postvar,
  $a_multi = false 
)

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Definition at line 25 of file class.ilTaxSelectInputGUI.php.

References $ilCtrl, $lng, ilObject\_lookupTitle(), ilExplorerSelectInputGUI\getExplHandleCmd(), getTaxonomyId(), setTaxonomyId(), and ilFormPropertyGUI\setType().

{
global $lng, $ilCtrl;
$lng->loadLanguageModule("tax");
$this->multi_nodes = $a_multi;
include_once("./Services/Taxonomy/classes/class.ilTaxonomyExplorerGUI.php");
$ilCtrl->setParameterByClass("ilformpropertydispatchgui", "postvar", $a_postvar);
$this->explorer_gui = new ilTaxonomyExplorerGUI(array("ilformpropertydispatchgui", "iltaxselectinputgui"), $this->getExplHandleCmd(), $a_taxonomy_id, "", "",
"tax_expl_".$a_postvar);
$this->explorer_gui->setSelectMode($a_postvar."_sel", $this->multi_nodes);
$this->explorer_gui->setSkipRootNode(true);
parent::__construct(ilObject::_lookupTitle($a_taxonomy_id), $a_postvar, $this->explorer_gui, $this->multi_nodes);
$this->setType("tax_select");
if ((int) $a_taxonomy_id == 0)
{
throw new ilTaxonomyExceptions("No taxonomy ID passed to ilTaxSelectInputGUI.");
}
$this->setTaxonomyId((int) $a_taxonomy_id);
$this->tax = new ilObjTaxonomy($this->getTaxonomyId());
}

+ Here is the call graph for this function:

Member Function Documentation

ilTaxSelectInputGUI::getTaxonomyId ( )

Get taxonomy id.

Returns
int taxonomy id

Definition at line 65 of file class.ilTaxSelectInputGUI.php.

Referenced by __construct().

{
return $this->taxononmy_id;
}

+ Here is the caller graph for this function:

ilTaxSelectInputGUI::getTitleForNodeId (   $a_id)

Get title for node id (needs to be overwritten, if explorer is not a tree eplorer.

Parameters
@return

Reimplemented from ilExplorerSelectInputGUI.

Definition at line 76 of file class.ilTaxSelectInputGUI.php.

References ilTaxonomyNode\_lookupTitle().

{
include_once("./Services/Taxonomy/classes/class.ilTaxonomyNode.php");
}

+ Here is the call graph for this function:

ilTaxSelectInputGUI::setTaxonomyId (   $a_val)

Set taxonomy id.

Parameters
int$a_valtaxonomy id

Definition at line 55 of file class.ilTaxSelectInputGUI.php.

Referenced by __construct().

{
$this->taxononmy_id = $a_val;
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: