ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilHiddenInputGUI Class Reference

This class represents a hidden form property in a property form. More...

+ Inheritance diagram for ilHiddenInputGUI:
+ Collaboration diagram for ilHiddenInputGUI:

Public Member Functions

 __construct ($a_postvar)
 Constructor. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 getToolbarHTML ()
 Get HTML for toolbar. 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...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. More...
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 

Protected Attributes

 $value
 
- 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

This class represents a hidden form property in a property form.

Author
Roland Küstermann (rkues.nosp@m.term.nosp@m.ann@m.nosp@m.ps.d.nosp@m.e)
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilHiddenInputGUI::__construct (   $a_postvar)

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Definition at line 42 of file class.ilHiddenInputGUI.php.

43 {
44 parent::__construct("", $a_postvar);
45 $this->setType("hidden");
46 }
setType($a_type)
Set Type.

References ilFormPropertyGUI\setType().

+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilHiddenInputGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented from ilFormPropertyGUI.

Definition at line 74 of file class.ilHiddenInputGUI.php.

75 {
76 return true; // please overwrite
77 }

◆ getToolbarHTML()

ilHiddenInputGUI::getToolbarHTML ( )

Get HTML for toolbar.

Implements ilToolbarItem.

Definition at line 107 of file class.ilHiddenInputGUI.php.

108 {
109 return "<input type=\"hidden\"" .
110 " name=\"" . $this->getPostVar() . "\"" .
111 " value=\"" . ilUtil::prepareFormOutput($this->getValue()) . "\"" .
112 " id=\"" . $this->getFieldId() . "\" />";
113 }
getPostVar()
Get Post Variable.
getFieldId()
Get Post Variable.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getPostVar(), getValue(), and ilUtil\prepareFormOutput().

+ Here is the call graph for this function:

◆ getValue()

ilHiddenInputGUI::getValue ( )

Get Value.

Returns
string Value

Definition at line 63 of file class.ilHiddenInputGUI.php.

References $value.

Referenced by getToolbarHTML(), and insert().

+ Here is the caller graph for this function:

◆ insert()

ilHiddenInputGUI::insert (   $a_tpl)

Insert property html.

Returns
int Size

Definition at line 94 of file class.ilHiddenInputGUI.php.

95 {
96 $a_tpl->setCurrentBlock("hidden");
97 $a_tpl->setVariable('PROP_INPUT_TYPE', 'hidden');
98 $a_tpl->setVariable("POST_VAR", $this->getPostVar());
99 $a_tpl->setVariable("ID", $this->getFieldId());
100 $a_tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($this->getValue()));
101 $a_tpl->parseCurrentBlock();
102 }

References ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getPostVar(), getValue(), and ilUtil\prepareFormOutput().

+ Here is the call graph for this function:

◆ setValue()

ilHiddenInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Definition at line 53 of file class.ilHiddenInputGUI.php.

54 {
55 $this->value = $a_value;
56 }

Referenced by setValueByArray().

+ Here is the caller graph for this function:

◆ setValueByArray()

ilHiddenInputGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Definition at line 84 of file class.ilHiddenInputGUI.php.

85 {
86 $this->setValue($a_values[$this->getPostVar()]);
87 }
setValue($a_value)
Set Value.

References ilFormPropertyGUI\getPostVar(), and setValue().

+ Here is the call graph for this function:

Field Documentation

◆ $value

ilHiddenInputGUI::$value
protected

Definition at line 34 of file class.ilHiddenInputGUI.php.

Referenced by getValue().


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