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

Class ilOrgUnitPositionFormGUI. More...

+ Inheritance diagram for ilOrgUnitPositionFormGUI:
+ Collaboration diagram for ilOrgUnitPositionFormGUI:

Public Member Functions

 fillForm ()
 
- Public Member Functions inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseForm
 __construct (BaseCommands $parent_gui, \ActiveRecord $object)
 BaseForm constructor. More...
 
 fillForm ()
 
 saveObject ()
 
- Public Member Functions inherited from ilPropertyFormGUI
 __construct ()
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 setTableWidth ($a_width)
 Set table width. More...
 
 getTableWidth ()
 get table width More...
 
 setMode ($a_mode)
 Set Mode ('std', 'subform'). More...
 
 getMode ()
 Get Mode ('std', 'subform'). More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setTitleIcon ($a_titleicon)
 Set TitleIcon. More...
 
 getTitleIcon ()
 Get TitleIcon. More...
 
 setDescription ($a_val)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setTopAnchor ($a_val)
 Set top anchor. More...
 
 getTopAnchor ()
 Get top anchor. More...
 
 setShowTopButtons ($a_val)
 Get show top buttons. More...
 
 getShowTopButtons ()
 Set show top buttons. More...
 
 addItem ($a_item)
 Add Item (Property, SectionHeader). More...
 
 removeItemByPostVar ($a_post_var, $a_remove_unused_headers=false)
 Remove Item. More...
 
 getItemByPostVar ($a_post_var)
 Get Item by POST variable. More...
 
 setItems ($a_items)
 Set Items. More...
 
 getItems ()
 Get Items. More...
 
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively More...
 
 setDisableStandardMessage ($a_val)
 Set disable standard message. More...
 
 getDisableStandardMessage ()
 Get disable standard message. More...
 
 getHideLabels ()
 Get a value indicating whether the labels should be hidden or not. More...
 
 setHideLabels ($a_value=true)
 Set a value indicating whether the labels should be hidden or not. More...
 
 setValuesByArray ($a_values, $a_restrict_to_value_keys=false)
 Set form values from an array. More...
 
 setValuesByPost ()
 Set form values from POST values. More...
 
 checkInput ()
 Check Post Input. More...
 
 getInput ($a_post_var, $ensureValidation=true)
 Returns the value of a HTTP-POST variable, identified by the passed id. More...
 
 addCustomProperty ( $a_title, $a_html, $a_info="", $a_alert="", $a_required=false)
 Add a custom property. More...
 
 addCommandButton ($a_cmd, $a_text, $a_id="")
 Add Command button. More...
 
 getCommandButtons ()
 Return all Command buttons. More...
 
 clearCommandButtons ()
 Remove all command buttons. More...
 
 getContent ()
 Get Content. More...
 
 insertItem ($item, $a_sub_item=false)
 
 getHTML ()
 
 getFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Get file upload data. More...
 
 hasFileUpload ($a_field, $a_index=null, $a_sub_index=null)
 Was any file uploaded? More...
 
 moveFileUpload ($a_target_directory, $a_field, $a_target_name=null, $a_index=null, $a_sub_index=null)
 Move upload to target directory. More...
 
- Public Member Functions inherited from ilFormGUI
 setFormAction ($a_formaction)
 Set FormAction. More...
 
 getFormAction ()
 Get FormAction. More...
 
 setTarget ($a_target)
 Set Target. More...
 
 getTarget ()
 Get Target. More...
 
 setMultipart ($a_multipart)
 Set Enctype Multipart/Formdata true/false. More...
 
 getMultipart ()
 Get Enctype Multipart/Formdata true/false. More...
 
 setId ($a_id)
 Set Id. More...
 
 getId ()
 Get Id. More...
 
 setName ($a_name)
 Set Name. More...
 
 getName ()
 Get Name. More...
 
 setKeepOpen ($a_keepopen)
 Set Keep Form Tag Open. More...
 
 getKeepOpen ()
 Get Keep Form Tag Open. More...
 
 setOpenTag ($a_open)
 Enable/Disable Open Form Tag. More...
 
 getOpenTag ()
 Get Open Form Tag Enabled. More...
 
 setCloseTag ($a_val)
 Set close tag. More...
 
 getCloseTag ()
 Get close tag. More...
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 getHTML ()
 Get HTML. More...
 
 getContent ()
 Get Content. More...
 

Data Fields

const F_AUTHORITIES = "authorities"
 
const F_TITLE = 'title'
 
const F_DESCRIPTION = 'description'
 

Protected Member Functions

 initFormElements ()
 
- Protected Member Functions inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseForm
 initFormElements ()
 
 fillObject ()
 
 initButtons ()
 
 txt ($key)
 
 infoTxt ($key)
 
 dic ()
 
- Protected Member Functions inherited from ilPropertyFormGUI
 hideRequired ($a_type)
 
 rebuildUploadedFiles ()
 try to rebuild files More...
 

Protected Attributes

 $object
 
- Protected Attributes inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseForm
 $parent_gui
 
 $DIC
 
 $object
 
- Protected Attributes inherited from ilPropertyFormGUI
 $lng
 
 $ctrl
 
 $tpl
 
 $user
 
 $settings
 
 $mode = "std"
 
 $check_input_called = false
 
 $disable_standard_message = false
 
 $top_anchor = "il_form_top"
 
 $titleicon = false
 
 $description = ""
 
 $tbl_width = false
 
 $show_top_buttons = true
 
 $hide_labels = false
 
- Protected Attributes inherited from ilFormGUI
 $formaction
 
 $multipart = false
 
 $keepopen = false
 
 $opentag = true
 
 $id
 
 $name
 
 $prevent_double_submission = false
 

Detailed Description

Member Function Documentation

◆ fillForm()

ilOrgUnitPositionFormGUI::fillForm ( )

Definition at line 60 of file class.ilOrgUnitPositionFormGUI.php.

References $authority, ilFormGUI\$id, array, ilPropertyFormGUI\checkInput(), ILIAS\Modules\OrgUnit\ARHelper\BaseForm\fillObject(), ActiveRecord\findOrGetInstance(), ilPropertyFormGUI\getInput(), object, and ilPropertyFormGUI\setValuesByArray().

61  {
62  $array = array(
63  self::F_TITLE => $this->object->getTitle(),
64  self::F_DESCRIPTION => $this->object->getDescription(),
65  self::F_AUTHORITIES => $this->object->getAuthoritiesAsArray(),
66  );
67 
68  $this->setValuesByArray($array);
69  }
Create styles array
The data for the language used.
Create new PHPExcel object
obj_idprivate
setValuesByArray($a_values, $a_restrict_to_value_keys=false)
Set form values from an array.
+ Here is the call graph for this function:

◆ initFormElements()

ilOrgUnitPositionFormGUI::initFormElements ( )
protected

Definition at line 21 of file class.ilOrgUnitPositionFormGUI.php.

References ilFormGUI\$id, $m, $txt, ilPropertyFormGUI\addItem(), array, ActiveRecord\getArray(), ilOrgUnitAuthority\getScopes(), ilOrgUnitAuthority\OVER_EVERYONE, and ILIAS\Modules\OrgUnit\ARHelper\BaseForm\txt().

22  {
23  $te = new ilTextInputGUI($this->txt(self::F_TITLE), self::F_TITLE);
24  $te->setRequired(true);
25  $this->addItem($te);
26 
27  $te = new ilTextAreaInputGUI($this->txt(self::F_DESCRIPTION), self::F_DESCRIPTION);
28  $this->addItem($te);
29 
30  $m = new ilOrgUnitGenericMultiInputGUI($this->txt(self::F_AUTHORITIES), self::F_AUTHORITIES);
31  $m->setShowLabel(true);
32  $m->setRenderOneForEmptyValue(false);
33  $m->setMulti(true);
34 
35  $id = new ilHiddenInputGUI('id');
36  $m->addInput($id);
37 
38  $over = new ilSelectInputGUI($this->txt('over'), 'over');
39  $over_options = array();
40  $over_options[ilOrgUnitAuthority::OVER_EVERYONE] = $this->txt('over_'
42  $over_options = $over_options + ilOrgUnitPosition::getArray('id', 'title');
43  $over->setOptions($over_options);
44  $m->addInput($over);
45 
46  $available_scopes = array();
47  foreach (ilOrgUnitAuthority::getScopes() as $scope) {
48  $txt = $this->txt('scope_' . $scope);
49  $available_scopes[$scope] = $txt;
50  }
51 
52  $scopes = new ilSelectInputGUI($this->txt('scope'), 'scope');
53  $scopes->setOptions($available_scopes);
54  $m->addInput($scopes);
55 
56  $this->addItem($m);
57  }
This class represents a selection list property in a property form.
addItem($a_item)
Add Item (Property, SectionHeader).
This class represents a hidden form property in a property form.
This class represents a text property in a property form.
$txt
Definition: error.php:11
Create styles array
The data for the language used.
This class represents a text area property in a property form.
static getArray($key=null, $values=null)
+ Here is the call graph for this function:

Field Documentation

◆ $object

ilOrgUnitPositionFormGUI::$object
protected

Definition at line 16 of file class.ilOrgUnitPositionFormGUI.php.

◆ F_AUTHORITIES

const ilOrgUnitPositionFormGUI::F_AUTHORITIES = "authorities"

Definition at line 12 of file class.ilOrgUnitPositionFormGUI.php.

◆ F_DESCRIPTION

const ilOrgUnitPositionFormGUI::F_DESCRIPTION = 'description'

Definition at line 18 of file class.ilOrgUnitPositionFormGUI.php.

◆ F_TITLE

const ilOrgUnitPositionFormGUI::F_TITLE = 'title'

Definition at line 17 of file class.ilOrgUnitPositionFormGUI.php.


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