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

Class ilSamlIdpMetadataInputGUI. More...

+ Inheritance diagram for ilSamlIdpMetadataInputGUI:
+ Collaboration diagram for ilSamlIdpMetadataInputGUI:

Public Member Functions

 __construct ($a_title='', $a_postvar='', \ilSamlIdpXmlMetadataParser $idpMetadataParser=null)
 ilSamlIdpMetadataInputGUI constructor. More...
 
 getIdpMetadataParser ()
 
 checkInput ()
 
- Public Member Functions inherited from ilTextAreaInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setCols ($a_cols)
 Set Cols. More...
 
 getCols ()
 Get Cols. More...
 
 setRows ($a_rows)
 Set Rows. More...
 
 getRows ()
 Get Rows. More...
 
 setMaxNumOfChars ($a_number)
 Set Maximum number of characters allowed. More...
 
 getMaxNumOfChars ()
 Get Maximum number of characters allowed. More...
 
 setMinNumOfChars ($a_number)
 Set Minimum number of characters allowed. More...
 
 getMinNumOfChars ()
 Get Minimum number of characters allowed. More...
 
 setUseRte ($a_usert, $version='')
 Set Use Rich Text Editing. More...
 
 getUseRte ()
 Get Use Rich Text Editing. More...
 
 addPlugin ($a_plugin)
 Add RTE plugin. More...
 
 removePlugin ($a_plugin)
 Remove RTE plugin. More...
 
 addButton ($a_button)
 Add RTE button. More...
 
 removeButton ($a_button)
 Remove RTE button. More...
 
 setRTESupport ($obj_id, $obj_type, $module, $cfg_template=null, $hide_switch=false, $version=null)
 Set RTE support for a special module. More...
 
 removeRTESupport ()
 Remove RTE support for a special module. More...
 
 setRteTags ($a_rtetags)
 Set Valid RTE Tags. More...
 
 getRteTags ()
 Get Valid RTE Tags. More...
 
 setRteTagSet ($a_set_name)
 Set Set of Valid RTE Tags. More...
 
 getRteTagSet ($a_set_name)
 Get Set of Valid RTE Tags. More...
 
 getRteTagString ()
 RTE Tag string. More...
 
 setUseTagsForRteOnly ($a_val)
 Set use tags for RTE only (default is true) More...
 
 getUseTagsForRteOnly ()
 Get use tags for RTE only (default is true) More...
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 usePurifier ($a_flag=null)
 Setter/Getter for the html purifier usage. More...
 
 setPurifier (ilHtmlPurifierInterface $Purifier)
 Setter for the html purifier. More...
 
 getPurifier ()
 Getter for the html purifier. More...
 
 setRTERootBlockElement ($a_root_block_element)
 Setter for the TinyMCE root block element. More...
 
 getRTERootBlockElement ()
 Getter for the TinyMCE root block element. More...
 
 disableButtons ($a_button)
 Sets buttons which should be disabled in TinyMCE. More...
 
 getDisabledButtons ($as_array=true)
 Returns the disabled TinyMCE buttons. More...
 
 getInitialRteWidth ()
 
 setInitialRteWidth ($initial_rte_width)
 
 isCharLimited ()
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 Get sub form html. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 getType ()
 Get Type. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setPostVar ($a_postvar)
 Set Post Variable. More...
 
 getPostVar ()
 Get Post Variable. More...
 
 getFieldId ()
 Get Post Variable. More...
 
 setInfo ($a_info)
 Set Information Text. More...
 
 getInfo ()
 Get Information Text. More...
 
 setAlert ($a_alert)
 Set Alert Text. More...
 
 getAlert ()
 Get Alert Text. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required. More...
 
 setDisabled ($a_disabled)
 Set Disabled. More...
 
 getDisabled ()
 Get Disabled. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm ($a_parentform)
 Set Parent Form. More...
 
 getParentForm ()
 Get Parent Form. More...
 
 setParent ($a_val)
 Set Parent GUI object. More...
 
 getParent ()
 Get Parent GUI object. More...
 
 getSubForm ()
 Get sub form html. More...
 
 hideSubForm ()
 Sub form hidden on init? More...
 
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders) More...
 
 getHiddenTitle ()
 Get hidden title. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
 serializeData ()
 serialize data More...
 
 unserializeData ($a_data)
 unserialize data More...
 
 writeToSession ()
 Write to session. More...
 
 clearFromSession ()
 Clear session value. More...
 
 readFromSession ()
 Read from session. More...
 
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties) More...
 
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi. More...
 
 getMulti ()
 Get Multi. More...
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 getMultiValues ()
 Get multi values. More...
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback ($a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 

Protected Attributes

 $idpMetadataParser
 
- Protected Attributes inherited from ilTextAreaInputGUI
 $value
 
 $cols
 
 $rows
 
 $usert
 
 $rtetags
 
 $plugins
 
 $removeplugins
 
 $buttons
 
 $rtesupport
 
 $use_tags_for_rte_only = true
 
 $max_num_chars
 
 $min_num_chars
 
 $initial_rte_width = 795
 
 $disabled_buttons = array()
 
 $usePurifier = false
 
 $Purifier = null
 
 $root_block_element = null
 
 $rte_tag_set
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
 $ctrl
 
 $lng
 
 $type
 
 $title
 
 $postvar
 
 $info
 
 $alert
 
 $required = false
 
 $parentgui
 
 $parentform
 
 $hidden_title = ""
 
 $multi = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters ($a_text)
 Remove prohibited characters see #19159. More...
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSamlIdpMetadataInputGUI::__construct (   $a_title = '',
  $a_postvar = '',
\ilSamlIdpXmlMetadataParser  $idpMetadataParser = null 
)

ilSamlIdpMetadataInputGUI constructor.

Parameters
string$a_title
string$a_postvar
ilSamlIdpXmlMetadataParser | null$idpMetadataParser

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

References $idpMetadataParser.

21  {
22  parent::__construct($a_title, $a_postvar);
23  $this->idpMetadataParser = $idpMetadataParser;
24  }

Member Function Documentation

◆ checkInput()

ilSamlIdpMetadataInputGUI::checkInput ( )

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

References $_POST, $GLOBALS, $valid, ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\setAlert().

38  {
39  $valid = parent::checkInput();
40  if (!$valid) {
41  return false;
42  }
43 
44  try {
45  $httpValue = $_POST[$this->getPostVar()];
46 
47  $this->idpMetadataParser->parse($httpValue);
48  if ($this->idpMetadataParser->hasErrors()) {
49  $this->setAlert(implode('<br />', $this->idpMetadataParser->getErrors()));
50  return false;
51  }
52 
53  if (!$this->idpMetadataParser->getEntityId()) {
54  $this->setAlert($GLOBALS['DIC']->language()->txt('auth_saml_add_idp_md_error'));
55  return false;
56  }
57  } catch (\Exception $e) {
58  $this->setAlert($GLOBALS['DIC']->language()->txt('auth_saml_add_idp_md_error'));
59  return false;
60  }
61 
62  return true;
63  }
getPostVar()
Get Post Variable.
$valid
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
setAlert($a_alert)
Set Alert Text.
$_POST["username"]
+ Here is the call graph for this function:

◆ getIdpMetadataParser()

ilSamlIdpMetadataInputGUI::getIdpMetadataParser ( )

Field Documentation

◆ $idpMetadataParser

ilSamlIdpMetadataInputGUI::$idpMetadataParser
protected

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

Referenced by __construct(), and getIdpMetadataParser().


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