ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilDclTreePickInputGUI Class Reference

Class ilDclDatatype. More...

+ Inheritance diagram for ilDclTreePickInputGUI:
+ Collaboration diagram for ilDclTreePickInputGUI:

Public Member Functions

 getHtml ()
 
 setValueByArray ($value)
 
- Public Member Functions inherited from ilCustomInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setHtml ($a_html)
 Set Html. More...
 
 getHtml ()
 Get Html. More...
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 Get sub form html. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 getType ()
 Get Type. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setPostVar ($a_postvar)
 Set Post Variable. More...
 
 getPostVar ()
 Get Post Variable. More...
 
 getFieldId ()
 Get Post Variable. More...
 
 setInfo ($a_info)
 Set Information Text. More...
 
 getInfo ()
 Get Information Text. More...
 
 setAlert ($a_alert)
 Set Alert Text. More...
 
 getAlert ()
 Get Alert Text. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required. More...
 
 setDisabled ($a_disabled)
 Set Disabled. More...
 
 getDisabled ()
 Get Disabled. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm ($a_parentform)
 Set Parent Form. More...
 
 getParentForm ()
 Get Parent Form. More...
 
 setParent ($a_val)
 Set Parent GUI object. More...
 
 getParent ()
 Get Parent GUI object. More...
 
 getSubForm ()
 Get sub form html. More...
 
 hideSubForm ()
 Sub form hidden on init? More...
 
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders) More...
 
 getHiddenTitle ()
 Get hidden title. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
 serializeData ()
 serialize data More...
 
 unserializeData ($a_data)
 unserialize data More...
 
 writeToSession ()
 Write to session. More...
 
 clearFromSession ()
 Clear session value. More...
 
 readFromSession ()
 Read from session. More...
 
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties) More...
 
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi. More...
 
 getMulti ()
 Get Multi. More...
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 getMultiValues ()
 Get multi values. More...
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback ($a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 

Protected Attributes

 $title_input
 
 $search_input
 
 $lng
 
- Protected Attributes inherited from ilCustomInputGUI
 $lng
 
 $html
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
 $ctrl
 
 $lng
 
 $type
 
 $title
 
 $postvar
 
 $info
 
 $alert
 
 $required = false
 
 $parentgui
 
 $parentform
 
 $hidden_title = ""
 
 $multi = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters ($a_text)
 Remove prohibited characters see #19159. More...
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Detailed Description

Member Function Documentation

◆ getHtml()

ilDclTreePickInputGUI::getHtml ( )
Returns
string

Definition at line 69 of file class.ilDclTreePickInputGUI.php.

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

70  {
71  global $DIC;
72  $ilCtrl = $DIC['ilCtrl'];
73  $tpl = new ilTemplate("tpl.dcl_tree.html", true, true, "Modules/DataCollection");
74  $tpl->setVariable("FIELD_ID", $this->getPostVar());
75  $tpl->setVariable("AJAX_LINK", $ilCtrl->getLinkTargetByClass("ildclrecordeditgui", "searchObjects"));
76  $tpl->setVariable("LOADER_PATH", ilUtil::getImagePath("loader.svg"));
77  $out = $this->title_input->getToolbarHTML();
78  $out .= "<a href='#' style='display:inline-block;' id='remove_{$this->getPostVar()}'>" . ilGlyphGUI::get(ilGlyphGUI::REMOVE) . "</a>";
79  $out .= $this->search_input->getTableFilterHTML();
80  $out .= $this->hidden_input->getToolbarHTML();
81  $out .= "<a href='#' id='search_button_" . $this->getPostVar() . "'>" . $this->lng->txt('search') . "</a>";
82  $out .= $tpl->get();
83 
84  return $out;
85  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
getPostVar()
Get Post Variable.
static get($a_glyph, $a_text="")
Get glyph html.
global $ilCtrl
Definition: ilias.php:18
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR
+ Here is the call graph for this function:

◆ setValueByArray()

ilDclTreePickInputGUI::setValueByArray (   $value)
Parameters
$value

Definition at line 91 of file class.ilDclTreePickInputGUI.php.

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

92  {
93  parent::setValueByArray($value);
94  include_once './Services/Tree/classes/class.ilPathGUI.php';
95  $path = new ilPathGUI();
96  $reference = $value[$this->getPostVar()];
97  if ($reference) {
98  $pathString = $path->getPath(ROOT_FOLDER_ID, $reference);
99  $id = ilObject::_lookupObjId($reference);
100  $this->title_input->setValue($pathString . " > " . ilObject::_lookupTitle($id));
101  $this->hidden_input->setValue($reference);
102  }
103  }
Creates a path for a start and endnode.
getPostVar()
Get Post Variable.
if(!array_key_exists('StateId', $_REQUEST)) $id
static _lookupTitle($a_id)
lookup object title
static _lookupObjId($a_id)
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilDclTreePickInputGUI::$lng
protected

Definition at line 36 of file class.ilDclTreePickInputGUI.php.

◆ $search_input

ilDclTreePickInputGUI::$search_input
protected

Definition at line 32 of file class.ilDclTreePickInputGUI.php.

◆ $title_input

ilDclTreePickInputGUI::$title_input
protected

Definition at line 28 of file class.ilDclTreePickInputGUI.php.


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