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

Class ilDataCollectionDatatype. More...

+ Inheritance diagram for ilDataCollectionTreePickInputGUI:
+ Collaboration diagram for ilDataCollectionTreePickInputGUI:

Public Member Functions

 getHtml ()
 setValueByArray ($value)
- Public Member Functions inherited from ilCustomInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
 setHtml ($a_html)
 Set Html.
 insert (&$a_tpl)
 Insert property html.
 checkInput ()
 Check input, strip slashes etc.
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively
 checkSubItemsInput ()
 Check SubItems.
 getSubForm ()
 Get sub form html.
 getItemByPostVar ($a_post_var)
 Get item by post var.
- Public Member Functions inherited from ilFormPropertyGUI
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.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 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.

Protected Attributes

 $title_input
 $search_input
 $lng
- Protected Attributes inherited from ilCustomInputGUI
 $html
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
- 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

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
 getMultiIconsHTML ()
 Get HTML for multiple value icons.

Detailed Description

Member Function Documentation

ilDataCollectionTreePickInputGUI::getHtml ( )
Returns
string

Reimplemented from ilCustomInputGUI.

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

References $ilCtrl, $out, $tpl, ilGlyphGUI\get(), ilUtil\getImagePath(), ilFormPropertyGUI\getPostVar(), and ilGlyphGUI\REMOVE.

{
global $ilCtrl;
$tpl = new ilTemplate("tpl.dcl_tree.html", true, true, "Modules/DataCollection");
$tpl->setVariable("FIELD_ID", $this->getPostVar());
$tpl->setVariable("AJAX_LINK", $ilCtrl->getLinkTargetByClass("ildatacollectionrecordeditgui", "searchObjects"));
$tpl->setVariable("LOADER_PATH", ilUtil::getImagePath("loader.svg"));
$out = $this->title_input->getToolbarHTML();
$out .= "<a href='#' style='display:inline-block;' id='remove_{$this->getPostVar()}'>" . ilGlyphGUI::get(ilGlyphGUI::REMOVE) . "</a>";
$out .= $this->search_input->getTableFilterHTML();
$out .= $this->hidden_input->getToolbarHTML();
$out .= "<a href='#' id='search_button_" . $this->getPostVar() . "'>" . $this->lng->txt('search') . "</a>";
$out .= $tpl->get();
return $out;
}

+ Here is the call graph for this function:

ilDataCollectionTreePickInputGUI::setValueByArray (   $value)
Parameters
$value

Reimplemented from ilCustomInputGUI.

Definition at line 85 of file class.ilDataCollectionTreePickInputGUI.php.

References $path, ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilFormPropertyGUI\getPostVar().

{
include_once './Services/Tree/classes/class.ilPathGUI.php';
$path = new ilPathGUI();
$reference = $value[$this->getPostVar()];
if ($reference) {
$pathString = $path->getPath(ROOT_FOLDER_ID, $reference);
$id = ilObject::_lookupObjId($reference);
$this->title_input->setValue($pathString . " > " . ilObject::_lookupTitle($id));
$this->hidden_input->setValue($reference);
}
}

+ Here is the call graph for this function:

Field Documentation

ilDataCollectionTreePickInputGUI::$lng
protected

Definition at line 35 of file class.ilDataCollectionTreePickInputGUI.php.

ilDataCollectionTreePickInputGUI::$search_input
protected

Definition at line 31 of file class.ilDataCollectionTreePickInputGUI.php.

ilDataCollectionTreePickInputGUI::$title_input
protected

Definition at line 27 of file class.ilDataCollectionTreePickInputGUI.php.


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