ILIAS  release_8 Revision v8.24
ilOrgUnitAuthorityInputGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilOrgUnitAuthorityInputGUI:
+ Collaboration diagram for ilOrgUnitAuthorityInputGUI:

Public Member Functions

 insert (ilTemplate $a_tpl)
 
 setValueByArray (array $values)
 
 setValue (array $a_value)
 
 getValue ()
 
 getMulti ()
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct (string $a_title="", string $a_postvar="")
 
 executeCommand ()
 
 getType ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setPostVar (string $a_postvar)
 
 getPostVar ()
 
 getFieldId ()
 
 setInfo (string $a_info)
 
 getInfo ()
 
 setAlert (string $a_alert)
 
 getAlert ()
 
 setRequired (bool $a_required)
 
 getRequired ()
 
 setDisabled (bool $a_disabled)
 
 getDisabled ()
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm (ilPropertyFormGUI $a_parentform)
 
 getParentForm ()
 
 setParent (ilFormPropertyGUI $a_val)
 
 getParent ()
 
 getSubForm ()
 
 hideSubForm ()
 
 setHiddenTitle (string $a_val)
 
 getHiddenTitle ()
 
 getItemByPostVar (string $a_post_var)
 Get item by post var. More...
 
 serializeData ()
 
 unserializeData (string $a_data)
 
 setParentTable ($a_val)
 Set parent table. More...
 
 getParentTable ()
 Get parent table. More...
 
 writeToSession ()
 
 clearFromSession ()
 
 readFromSession ()
 
 getHiddenTag (string $a_post_var, string $a_value)
 
 setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true)
 
 getMulti ()
 
 setMultiValues (array $a_values)
 
 getMultiValues ()
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback (string $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...
 
 setRequestParam (string $key, $val)
 This writes the request (aka post) values. More...
 

Protected Member Functions

 dic ()
 
 lang ()
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType (string $a_type)
 
 checkParentFormTable ()
 
 getSessionKey ()
 
 getMultiIconsHTML ()
 
 int ($key)
 
 intArray ($key)
 
 str ($key)
 
 raw ($key)
 
 strArray ($key)
 
 arrayArray ($key)
 
 isRequestParamArray (string $key)
 
 getRequestParam (string $key, Refinery\Transformation $t)
 

Protected Attributes

 $value
 
- Protected Attributes inherited from ilFormPropertyGUI
array $set_params = []
 
ilTable2GUI $parent_table = null
 
ilFormPropertyGUI $parent_gui = null
 
ilCtrl $ctrl
 
ilLanguage $lng
 
string $type = ""
 
string $title = ""
 
string $postvar = ""
 
string $info = ""
 
string $alert = ""
 
bool $required = false
 
ilPropertyFormGUI $parentform = null
 
string $hidden_title = ""
 
bool $multi = false
 
bool $multi_sortable = false
 
bool $multi_addremove = true
 
array $multi_values = []
 
RequestInterface $request
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
bool $disabled = false
 
ilGlobalTemplateInterface $global_tpl = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters (string $a_text)
 Remove prohibited characters see #19159. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitAuthorityInputGUI

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 23 of file class.ilOrgUnitAuthorityInputGUI.php.

Member Function Documentation

◆ dic()

ilOrgUnitAuthorityInputGUI::dic ( )
protected

Definition at line 149 of file class.ilOrgUnitAuthorityInputGUI.php.

150 {
151 return $GLOBALS["DIC"];
152 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32

References $GLOBALS.

Referenced by lang().

+ Here is the caller graph for this function:

◆ getMulti()

ilOrgUnitAuthorityInputGUI::getMulti ( )

Reimplemented from ilFormPropertyGUI.

Definition at line 166 of file class.ilOrgUnitAuthorityInputGUI.php.

166 : bool
167 {
168 return false;
169 }

◆ getValue()

ilOrgUnitAuthorityInputGUI::getValue ( )
Returns
\ilOrgUnitAuthority[]

Definition at line 87 of file class.ilOrgUnitAuthorityInputGUI.php.

References $value.

◆ insert()

ilOrgUnitAuthorityInputGUI::insert ( ilTemplate  $a_tpl)
Parameters
\ilTemplate$a_tpl

Definition at line 52 of file class.ilOrgUnitAuthorityInputGUI.php.

52 : void
53 {
54 $html = $this->render();
55
56 $a_tpl->setCurrentBlock("prop_generic");
57 $a_tpl->setVariable("PROP_GENERIC", $html);
58 $a_tpl->parseCurrentBlock();
59 }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:514
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)

References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

+ Here is the call graph for this function:

◆ lang()

ilOrgUnitAuthorityInputGUI::lang ( )
protected

Definition at line 154 of file class.ilOrgUnitAuthorityInputGUI.php.

155 {
156 static $loaded;
157 $lang = $this->dic()->language();
158 if (!$loaded) {
159 $lang->loadLanguageModule('orgu');
160 $loaded = true;
161 }
162
163 return $lang;
164 }
language handling
$lang
Definition: xapiexit.php:26

References $lang, and dic().

+ Here is the call graph for this function:

◆ setValue()

ilOrgUnitAuthorityInputGUI::setValue ( array  $a_value)
Parameters
\ilOrgUnitAuthority[]$a_value

Definition at line 79 of file class.ilOrgUnitAuthorityInputGUI.php.

79 : void
80 {
81 $this->value = $a_value;
82 }

Referenced by setValueByArray().

+ Here is the caller graph for this function:

◆ setValueByArray()

ilOrgUnitAuthorityInputGUI::setValueByArray ( array  $values)
Parameters
array$values

Definition at line 64 of file class.ilOrgUnitAuthorityInputGUI.php.

64 : void
65 {
66 $authorities = $values[$this->getPostVar()];
67 if (!is_array($authorities)) {
68 $authorities = [];
69 }
70 foreach ($authorities as $authority) {
71 assert($authority instanceof ilOrgUnitAuthority);
72 }
73 $this->setValue($authorities);
74 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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

+ Here is the call graph for this function:

Field Documentation

◆ $value

ilOrgUnitAuthorityInputGUI::$value
protected

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

Referenced by getValue().


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