ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilOrgUnitAuthorityFormGUI Class Reference

Class ilOrgUnitAuthorityFormGUI. More...

+ Inheritance diagram for ilOrgUnitAuthorityFormGUI:
+ Collaboration diagram for ilOrgUnitAuthorityFormGUI:

Public Member Functions

 initFormElements ()
 
 fillForm ()
 
 fillObject ()
 
- Public Member Functions inherited from ILIAS\components\OrgUnit\ARHelper\BaseForm
 __construct (BaseCommands $parent_gui, \ActiveRecord $object)
 
 fillForm ()
 
 saveObject ()
 
- Public Member Functions inherited from ilPropertyFormGUI
 __construct ()
 
 executeCommand ()
 
 setTableWidth (string $a_width)
 
 getTableWidth ()
 
 setMode (string $a_mode)
 
 getMode ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setTitleIcon (string $a_titleicon)
 
 getTitleIcon ()
 
 setDescription (string $a_val)
 
 getDescription ()
 
 setTopAnchor (string $a_val)
 
 getTopAnchor ()
 
 setShowTopButtons (bool $a_val)
 
 getShowTopButtons ()
 
 setForceTopButtons (bool $a_val)
 
 getForceTopButtons ()
 
 addItem ($a_item)
 
 removeItemByPostVar (string $a_post_var, bool $a_remove_unused_headers=false)
 
 getItemByPostVar (string $a_post_var)
 
 setItems (array $a_items)
 
 getItems ()
 
 getInputItemsRecursive ()
 returns a flat array of all input items including the possibly existing subitems recursively More...
 
 setDisableStandardMessage (bool $a_val)
 
 getDisableStandardMessage ()
 
 getHideLabels ()
 
 setHideLabels (bool $a_value=true)
 
 setValuesByArray (array $a_values, bool $a_restrict_to_value_keys=false)
 
 setValuesByPost ()
 
 checkInput ()
 
 getInput (string $a_post_var, bool $ensureValidation=true)
 Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-POST variable, identified by the passed postvar. More...
 
 addCommandButton (string $a_cmd, string $a_text, string $a_id="")
 
 getCommandButtons ()
 
 clearCommandButtons ()
 
 getContent ()
 
 insertItem ( $item, bool $a_sub_item=false)
 
 addAsyncOnloadCode (string $code)
 
 getHTML ()
 
 getHTMLAsync ()
 
 getFileUpload (string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
 Get file upload data. More...
 
 hasFileUpload (string $a_field, ?string $a_index=null, ?string $a_sub_index=null)
 
 moveFileUpload (string $a_target_directory, string $a_field, ?string $a_target_name=null, ?string $a_index=null, ?string $a_sub_index=null)
 Move upload to target directory. More...
 
- Public Member Functions inherited from ilFormGUI
 setFormAction (string $a_formaction)
 
 getFormAction ()
 
 setTarget (string $a_target)
 
 getTarget ()
 
 setMultipart (bool $a_multipart)
 
 getMultipart ()
 
 setId (string $a_id)
 
 getId ()
 
 setName (string $a_name)
 
 getName ()
 
 setKeepOpen (bool $a_keepopen)
 
 getKeepOpen ()
 
 setOpenTag (bool $a_open)
 
 getOpenTag ()
 
 setCloseTag (bool $a_val)
 
 getCloseTag ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 getHTML ()
 
 getContent ()
 

Protected Attributes

ActiveRecord $object
 
- Protected Attributes inherited from ILIAS\components\OrgUnit\ARHelper\BaseForm
BaseCommands $parent_gui
 
ILIAS DI Container $DIC
 
ActiveRecord $object
 
ilLanguage $lng
 
ilCtrl $ctrl
 
- Protected Attributes inherited from ilPropertyFormGUI
bool $required_text = false
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilTemplate $tpl
 
ilObjUser $user = null
 
ilSetting $settings = null
 
string $mode = "std"
 
bool $check_input_called = false
 
bool $disable_standard_message = false
 
string $top_anchor = "il_form_top"
 
string $title = ''
 
string $titleicon = ""
 
string $description = ""
 
string $tbl_width = ""
 
bool $show_top_buttons = true
 
bool $hide_labels = false
 
bool $force_top_buttons = false
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
ilGlobalTemplateInterface $global_tpl = null
 
 $onload_code = []
 
- Protected Attributes inherited from ilFormGUI
string $formaction = ""
 
bool $multipart = false
 
bool $keepopen = false
 
bool $opentag = true
 
string $id = ''
 
string $name = ''
 
string $target = ''
 
bool $prevent_double_submission = false
 

Private Attributes

const F_TITLE = 'title'
 
const F_DESCRIPTION = 'description'
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\components\OrgUnit\ARHelper\BaseForm
 initFormElements ()
 
 fillObject ()
 
- Protected Member Functions inherited from ilPropertyFormGUI
 getRequestedPostVar ()
 
 getFileHash ()
 
 hideRequired (string $a_type)
 
 appendOnloadCode (string $html)
 
 rebuildUploadedFiles ()
 
 checkForRequiredField ()
 

Detailed Description

Member Function Documentation

◆ fillForm()

ilOrgUnitAuthorityFormGUI::fillForm ( )

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

References ILIAS\Repository\object(), and ilPropertyFormGUI\setValuesByArray().

53  : void
54  {
55  $array = array(
56  self::F_TITLE => $this->object->getTitle(),
57  self::F_DESCRIPTION => $this->object->getDescription(),
58  );
59 
60  $this->setValuesByArray($array);
61  }
setValuesByArray(array $a_values, bool $a_restrict_to_value_keys=false)
+ Here is the call graph for this function:

◆ fillObject()

ilOrgUnitAuthorityFormGUI::fillObject ( )

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

References ilPropertyFormGUI\checkInput(), and ilPropertyFormGUI\getInput().

63  : bool
64  {
65  if (!$this->checkInput()) {
66  return false;
67  }
68 
69  $this->object->setTitle($this->getInput(self::F_TITLE));
70  $this->object->setDescription($this->getInput(self::F_DESCRIPTION));
71 
72 
73  return true;
74  }
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
+ Here is the call graph for this function:

◆ initFormElements()

ilOrgUnitAuthorityFormGUI::initFormElements ( )

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

References $c, Vendor\Package\$f, $r, ilPropertyFormGUI\addItem(), and ILIAS\Repository\lng().

32  : void
33  {
34  $te = new ilTextInputGUI($this->lng->txt(self::F_TITLE), self::F_TITLE);
35  $te->setRequired(true);
36  $this->addItem($te);
37 
38  $te = new ilTextAreaInputGUI($this->lng->txt(self::F_DESCRIPTION), self::F_DESCRIPTION);
39  $this->addItem($te);
40 
41  $c = new ilCustomInputGUI($this->lng->txt('authorities'));
42  $f = $this->parent_gui->dic()->ui()->factory();
43  $r = $this->parent_gui->dic()->ui()->renderer();
44  $modal = $f->modal()->roundtrip("Modal", $f->legacy()->content(''))->withCloseWithKeyboard(false);
45  $button = $f->button()
46  ->shy($this->lng->txt("open_authorities_modal"), '#')
47  ->withOnClick($modal->getShowSignal());
48 
49  $c->setHtml($r->render([$button, $modal]));
50  $this->addItem($c);
51  }
$c
Definition: deliver.php:25
This class represents a text area property in a property form.
$r
+ Here is the call graph for this function:

Field Documentation

◆ $object

ActiveRecord ilOrgUnitAuthorityFormGUI::$object
protected

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

◆ F_DESCRIPTION

const ilOrgUnitAuthorityFormGUI::F_DESCRIPTION = 'description'
private

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

◆ F_TITLE

const ilOrgUnitAuthorityFormGUI::F_TITLE = 'title'
private

Definition at line 29 of file class.ilOrgUnitAuthorityFormGUI.php.


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