ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSamlIdpMetadataInputGUI Class Reference
+ Inheritance diagram for ilSamlIdpMetadataInputGUI:
+ Collaboration diagram for ilSamlIdpMetadataInputGUI:

Public Member Functions

 __construct (string $title, string $httpPostVar, ilSamlIdpXmlMetadataParser $idpMetadataParser)
 
 getIdpMetadataParser ()
 
 checkInput ()
 
- Public Member Functions inherited from ilTextAreaInputGUI
 __construct (string $a_title="", string $a_postvar="")
 
 setValue (string $a_value)
 
 getValue ()
 
 setCols (int $a_cols)
 
 getCols ()
 
 setRows (int $a_rows)
 
 getRows ()
 
 setMaxNumOfChars (int $a_number)
 
 getMaxNumOfChars ()
 
 setMinNumOfChars (int $a_number)
 
 getMinNumOfChars ()
 
 setUseRte (bool $a_usert, string $version='')
 
 getUseRte ()
 
 addPlugin (string $a_plugin)
 
 removePlugin (string $a_plugin)
 
 addButton (string $a_button)
 
 removeButton (string $a_button)
 
 setRTESupport (int $obj_id, string $obj_type, string $module, ?string $cfg_template=null, bool $hide_switch=false, ?string $version=null)
 Set RTE support for a special module. More...
 
 removeRTESupport ()
 
 setRteTags (array $a_rtetags)
 
 getRteTags ()
 
 setRteTagSet (string $a_set_name)
 
 getRteTagSet ($a_set_name)
 
 getRteTagString ()
 
 setUseTagsForRteOnly (bool $a_val)
 Set use tags for RTE only (default is true) More...
 
 getUseTagsForRteOnly ()
 
 setValueByArray (array $a_values)
 
 checkInput ()
 
 getInput ()
 
 insert (ilTemplate $a_tpl)
 
 usePurifier (bool $a_flag=null)
 Setter/Getter for the html purifier usage. More...
 
 setPurifier (ilHtmlPurifierInterface $Purifier)
 Setter for the html purifier. More...
 
 getPurifier ()
 
 setRTERootBlockElement (?string $a_root_block_element)
 
 getRTERootBlockElement ()
 
 disableButtons ($a_button)
 Sets buttons which should be disabled in TinyMCE. More...
 
 getDisabledButtons (bool $as_array=true)
 
 getInitialRteWidth ()
 
 setInitialRteWidth (int $initial_rte_width)
 
 isCharLimited ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem (ilFormPropertyGUI $a_item)
 
 getSubItems ()
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 
 getItemByPostVar (string $a_post_var)
 
- 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 Attributes

ilSamlIdpXmlMetadataParser $idpMetadataParser
 
- Protected Attributes inherited from ilTextAreaInputGUI
array $rteSupport = []
 
string $value = ""
 
int $cols = 30
 
int $rows = 5
 
bool $usert = false
 
array $rtetags = []
 
array $plugins = []
 
array $removeplugins = []
 
array $buttons = []
 
array $rtesupport = []
 
bool $use_tags_for_rte_only = true
 
int $max_num_chars = 0
 
int $min_num_chars = 0
 
int $initial_rte_width = 795
 
array $disabled_buttons = array()
 
bool $usePurifier = false
 
ilHtmlPurifierInterface $Purifier = null
 
string $root_block_element = null
 
array $rte_tag_set
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
array $sub_items = array()
 
- 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...
 
- 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)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSamlIdpMetadataInputGUI::__construct ( string  $title,
string  $httpPostVar,
ilSamlIdpXmlMetadataParser  $idpMetadataParser 
)

Definition at line 25 of file class.ilSamlIdpMetadataInputGUI.php.

References $idpMetadataParser, and ILIAS\GlobalScreen\Provider\__construct().

26  {
27  parent::__construct($title, $httpPostVar);
28  $this->idpMetadataParser = $idpMetadataParser;
29  }
ilSamlIdpXmlMetadataParser $idpMetadataParser
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ checkInput()

ilSamlIdpMetadataInputGUI::checkInput ( )

Definition at line 36 of file class.ilSamlIdpMetadataInputGUI.php.

References Vendor\Package\$e, $valid, ilFormPropertyGUI\getPostVar(), ILIAS\Repository\lng(), ilFormPropertyGUI\raw(), ilFormPropertyGUI\setAlert(), and ilFormPropertyGUI\stripSlashesAddSpaceFallback().

36  : bool
37  {
38  $valid = parent::checkInput();
39  if (!$valid) {
40  return false;
41  }
42 
43  try {
44  $httpValue = $this->raw($this->getPostVar());
45 
46  $this->idpMetadataParser->parse($httpValue);
47  if ($this->idpMetadataParser->result()->isError()) {
48  $this->setAlert(implode(' ', [$this->lng->txt('auth_saml_add_idp_md_error'), $this->idpMetadataParser->result()->error()]));
49  return false;
50  }
51 
52  if (!$this->idpMetadataParser->result()->value()) {
53  $this->setAlert($this->lng->txt('auth_saml_add_idp_md_error'));
54  return false;
55  }
56 
57  $this->value = $this->stripSlashesAddSpaceFallback($this->idpMetadataParser->result()->value());
58  } catch (Exception $e) {
59  $this->setAlert($this->lng->txt('auth_saml_add_idp_md_error'));
60  return false;
61  }
62 
63  return true;
64  }
$valid
stripSlashesAddSpaceFallback(string $a_str)
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727.
+ Here is the call graph for this function:

◆ getIdpMetadataParser()

ilSamlIdpMetadataInputGUI::getIdpMetadataParser ( )

Field Documentation

◆ $idpMetadataParser

ilSamlIdpXmlMetadataParser ilSamlIdpMetadataInputGUI::$idpMetadataParser
protected

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

Referenced by __construct(), and getIdpMetadataParser().


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