ILIAS  trunk Revision v11.0_alpha-1871-gde1fee8db3d
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSamlIdpMetadataInputGUI Class Reference
+ Inheritance diagram for ilSamlIdpMetadataInputGUI:
+ Collaboration diagram for ilSamlIdpMetadataInputGUI:

Public Member Functions

 __construct (string $title, string $httpPostVar, protected ilSamlIdpXmlMetadataParser $idpMetadataParser)
 
 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...
 

Private Attributes

const AUTH_SAML_ADD_IDP_MD_ERROR = 'auth_saml_add_idp_md_error'
 

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
 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 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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

References ILIAS\GlobalScreen\Provider\__construct().

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

Member Function Documentation

◆ checkInput()

ilSamlIdpMetadataInputGUI::checkInput ( )

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

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

30  : bool
31  {
32  $valid = parent::checkInput();
33  if (!$valid) {
34  return false;
35  }
36 
37  try {
38  $httpValue = $this->raw($this->getPostVar());
39 
40  $result = $this->idpMetadataParser->parse($httpValue);
41  if ($result->isError()) {
42  $this->setAlert(implode(' ', [$this->lng->txt(self::AUTH_SAML_ADD_IDP_MD_ERROR), $result->error()]));
43  return false;
44  }
45 
46  $this->value = $this->stripSlashesAddSpaceFallback($result->value());
47  } catch (Exception) {
48  $this->setAlert($this->lng->txt(self::AUTH_SAML_ADD_IDP_MD_ERROR));
49  return false;
50  }
51 
52  return true;
53  }
$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:

Field Documentation

◆ AUTH_SAML_ADD_IDP_MD_ERROR

const ilSamlIdpMetadataInputGUI::AUTH_SAML_ADD_IDP_MD_ERROR = 'auth_saml_add_idp_md_error'
private

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


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