ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCharSelectorRadioGroupInputGUI Class Reference

Radio input for character seelctor definition. More...

+ Inheritance diagram for ilCharSelectorRadioGroupInputGUI:
+ Collaboration diagram for ilCharSelectorRadioGroupInputGUI:

Public Member Functions

 checkInput ()
 Additional check for either block or custom chars.
- Public Member Functions inherited from ilRadioGroupInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
 addOption ($a_option)
 Add Option.
 getOptions ()
 Get Options.
 setValue ($a_value)
 Set Value.
 getValue ()
 Get Value.
 setValueByArray ($a_values)
 Set value by array.
 insert (&$a_tpl)
 Insert property html.
 render ()
 Insert property html.
 getItemByPostVar ($a_post_var)
 Get item by post var.
 getTableFilterHTML ()
 Get input item HTML to be inserted into table filters.
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively
 checkSubItemsInput ()
 Check SubItems.
 getSubForm ()
 Get sub form html.
- Public Member Functions inherited from ilFormPropertyGUI
executeCommand ()
 Execute command.
 getType ()
 Get Type.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setPostVar ($a_postvar)
 Set Post Variable.
 getPostVar ()
 Get Post Variable.
 getFieldId ()
 Get Post Variable.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setAlert ($a_alert)
 Set Alert Text.
 getAlert ()
 Get Alert Text.
 setRequired ($a_required)
 Set Required.
 getRequired ()
 Get Required.
 setDisabled ($a_disabled)
 Set Disabled.
 getDisabled ()
 Get Disabled.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setParent ($a_val)
 Set Parent GUI object.
 getParent ()
 Get Parent GUI object.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 serializeData ()
 serialize data
 unserializeData ($a_data)
 unserialize data
 writeToSession ()
 Write to session.
 clearFromSession ()
 Clear session value.
 readFromSession ()
 Read from session.
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties)
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi.
 getMulti ()
 Get Multi.
 setMultiValues (array $a_values)
 Set multi values.
 getMultiValues ()
 Get multi values.
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g.

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
 getMultiIconsHTML ()
 Get HTML for multiple value icons.
- Protected Attributes inherited from ilRadioGroupInputGUI
 $options = array()
 $value

Detailed Description

Radio input for character seelctor definition.

Definition at line 7 of file class.ilCharSelectorRadioGroupInputGUI.php.

Member Function Documentation

ilCharSelectorRadioGroupInputGUI::checkInput ( )

Additional check for either block or custom chars.

Returns
boolean Input ok, true/false

Reimplemented from ilRadioGroupInputGUI.

Definition at line 14 of file class.ilCharSelectorRadioGroupInputGUI.php.

References $_POST, $lng, ilCharSelectorConfig\ENABLED, and ilFormPropertyGUI\setAlert().

{
global $lng;
if (!parent::checkInput())
{
return false;
}
if ($_POST['char_selector_availability'] == ilCharSelectorConfig::ENABLED
and trim(implode($_POST['char_selector_blocks'])) == ""
and trim($_POST['char_selector_custom_items']) == '')
{
$this->setAlert($lng->txt("char_selector_msg_blocks_or_custom_needed"));
return false;
}
else
{
return true;
}
}

+ Here is the call graph for this function:


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