ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilOrgUnitAuthorityInputGUI Class Reference

Class ilOrgUnitAuthorityInputGUI. More...

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

Public Member Functions

 __construct ($a_title, $a_postvar)
 ilOrgUnitAuthorityInputGUI constructor. More...
 
 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
 symbol ()
 
 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
 

Private Member Functions

 getPositionRepo ()
 

Private Attributes

ilOrgUnitPositionDBRepository $positionRepo
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitAuthorityInputGUI::__construct (   $a_title,
  $a_postvar 
)

ilOrgUnitAuthorityInputGUI constructor.

Parameters
string$a_title
string$a_postvar

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

References ILIAS\GlobalScreen\Provider\__construct().

39  {
40  parent::__construct($a_title, $a_postvar);
41  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ dic()

ilOrgUnitAuthorityInputGUI::dic ( )
protected

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

References $GLOBALS.

Referenced by getValue(), and lang().

154  {
155  return $GLOBALS["DIC"];
156  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
$GLOBALS["DIC"]
Definition: wac.php:54
+ Here is the caller graph for this function:

◆ getMulti()

ilOrgUnitAuthorityInputGUI::getMulti ( )

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

References $data, $GLOBALS, and getValue().

170  : bool
171  {
172  return false;
173  }
+ Here is the call graph for this function:

◆ getPositionRepo()

ilOrgUnitAuthorityInputGUI::getPositionRepo ( )
private

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

References $dic, $positionRepo, and ilOrgUnitLocalDIC\dic().

Referenced by getValue().

44  {
45  if (!isset($this->positionRepo)) {
47  $this->positionRepo = $dic["repo.Positions"];
48  }
49 
50  return $this->positionRepo;
51  }
ilOrgUnitPositionDBRepository $positionRepo
$dic
Definition: result.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getValue()

ilOrgUnitAuthorityInputGUI::getValue ( )

◆ insert()

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

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

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

56  : void
57  {
58  $html = $this->render();
59 
60  $a_tpl->setCurrentBlock("prop_generic");
61  $a_tpl->setVariable("PROP_GENERIC", $html);
62  $a_tpl->parseCurrentBlock();
63  }
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:544
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
+ Here is the call graph for this function:

◆ lang()

ilOrgUnitAuthorityInputGUI::lang ( )
protected

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

References $lang, and dic().

Referenced by getValue().

158  : \ilLanguage
159  {
160  static $loaded;
161  $lang = $this->dic()->language();
162  if (!$loaded) {
163  $lang->loadLanguageModule('orgu');
164  $loaded = true;
165  }
166 
167  return $lang;
168  }
$lang
Definition: xapiexit.php:25
language handling
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setValue()

ilOrgUnitAuthorityInputGUI::setValue ( array  $a_value)
Parameters

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

Referenced by setValueByArray().

83  : void
84  {
85  $this->value = $a_value;
86  }
+ Here is the caller graph for this function:

◆ setValueByArray()

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

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

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

68  : void
69  {
70  $authorities = $values[$this->getPostVar()];
71  if (!is_array($authorities)) {
72  $authorities = [];
73  }
74  foreach ($authorities as $authority) {
75  assert($authority instanceof ilOrgUnitAuthority);
76  }
77  $this->setValue($authorities);
78  }
Class ilOrguAuthority.
+ Here is the call graph for this function:

Field Documentation

◆ $positionRepo

ilOrgUnitPositionDBRepository ilOrgUnitAuthorityInputGUI::$positionRepo
private

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

Referenced by getPositionRepo().

◆ $value

ilOrgUnitAuthorityInputGUI::$value
protected

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

Referenced by getValue().


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