ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This shows a character selector. More...
Public Member Functions | |
__construct ($a_context=ilCharSelectorConfig::CONTEXT_NONE) | |
Constructor. More... | |
setConfig (ilCharSelectorConfig $a_config) | |
Set the configuraton object. More... | |
getConfig () | |
Get the configuraton object. More... | |
addFormProperties (ilPropertyFormGUI $a_form) | |
add the configuration elements to a property form More... | |
setFormValues (ilPropertyFormGUI $a_form) | |
Set the values in a property form based on the configuration. More... | |
getFormValues (ilPropertyFormGUI $a_form) | |
Set the configuration based on the values of a property form. More... | |
addToPage () | |
Adds the the character selector to the ilias page Initializes the selector according to the state saved in the user session. More... | |
getSelectorHTML () | |
Get the HTML code of the selector panel. More... | |
saveState () | |
Save the selector panel state in the user session (This keeps the panel state between page moves) More... | |
executeCommand () | |
execute command More... | |
Static Public Member Functions | |
static | _isAllowed () |
Check if the CharSelector is allowed for the current GUI. More... | |
static | _getCurrentGUI (ilObjTest $a_test_obj=null) |
Get the GUI that is used for the currently available selector (other GUI instances may exist for configuration in property forms) More... | |
Protected Attributes | |
$lng | |
$ctrl | |
$tpl | |
Private Attributes | |
$config = null | |
$added_to_page = false | |
Static Private Attributes | |
static | $allowed_guis |
list of command classes for which the char selector is allowed (can also be a parent class of the actual command class) More... | |
static | $current_gui |
ilCharSelectorGUI instance used for the current selector More... | |
This shows a character selector.
Definition at line 10 of file class.ilCharSelectorGUI.php.
ilCharSelectorGUI::__construct | ( | $a_context = ilCharSelectorConfig::CONTEXT_NONE | ) |
Constructor.
string | configuration context |
Definition at line 59 of file class.ilCharSelectorGUI.php.
References $DIC.
|
static |
Get the GUI that is used for the currently available selector (other GUI instances may exist for configuration in property forms)
object | (optional) current running test |
Definition at line 105 of file class.ilCharSelectorGUI.php.
References ilCharSelectorConfig\_getCurrentConfig().
Referenced by ilPropertyFormGUI\getContent(), and ilTestPlayerAbstractGUI\populateCharSelectorIfRequired().
|
static |
Check if the CharSelector is allowed for the current GUI.
Definition at line 73 of file class.ilCharSelectorGUI.php.
Referenced by ilPropertyFormGUI\getContent().
ilCharSelectorGUI::addFormProperties | ( | ilPropertyFormGUI | $a_form | ) |
add the configuration elements to a property form
object | property form |
Definition at line 136 of file class.ilCharSelectorGUI.php.
References $lng, $tpl, ilPropertyFormGUI\addItem(), ilCharSelectorConfig\CONTEXT_ADMIN, ilCharSelectorConfig\CONTEXT_TEST, ilCharSelectorConfig\CONTEXT_USER, ilCharSelectorConfig\DISABLED, ilCharSelectorConfig\ENABLED, ilCharSelectorConfig\INACTIVE, ilCharSelectorConfig\INHERIT, and ilFormPropertyGUI\setInfo().
Referenced by ilObjAdvancedEditingGUI\initCharSelectorSettingsForm().
ilCharSelectorGUI::addToPage | ( | ) |
Adds the the character selector to the ilias page Initializes the selector according to the state saved in the user session.
Definition at line 223 of file class.ilCharSelectorGUI.php.
References $_SESSION, $ctrl, $ilCtrl, $lng, $tpl, getSelectorHTML(), and ilUtil\getStyleSheetLocation().
ilCharSelectorGUI::executeCommand | ( | ) |
execute command
Definition at line 315 of file class.ilCharSelectorGUI.php.
References $ctrl, and $ilCtrl.
ilCharSelectorGUI::getConfig | ( | ) |
Get the configuraton object.
Definition at line 127 of file class.ilCharSelectorGUI.php.
References $config.
ilCharSelectorGUI::getFormValues | ( | ilPropertyFormGUI | $a_form | ) |
Set the configuration based on the values of a property form.
object | property form |
string | context of the form |
Definition at line 211 of file class.ilCharSelectorGUI.php.
References ilPropertyFormGUI\getInput().
ilCharSelectorGUI::getSelectorHTML | ( | ) |
Get the HTML code of the selector panel.
Definition at line 267 of file class.ilCharSelectorGUI.php.
References $index, $lng, and $tpl.
Referenced by addToPage().
ilCharSelectorGUI::saveState | ( | ) |
Save the selector panel state in the user session (This keeps the panel state between page moves)
Definition at line 297 of file class.ilCharSelectorGUI.php.
References $_GET, $_SESSION, and exit.
ilCharSelectorGUI::setConfig | ( | ilCharSelectorConfig | $a_config | ) |
Set the configuraton object.
ilCharSelectorConfig |
Definition at line 118 of file class.ilCharSelectorGUI.php.
ilCharSelectorGUI::setFormValues | ( | ilPropertyFormGUI | $a_form | ) |
Set the values in a property form based on the configuration.
object | property form |
string | context of the form |
Definition at line 198 of file class.ilCharSelectorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
|
private |
Definition at line 52 of file class.ilCharSelectorGUI.php.
|
staticprivate |
list of command classes for which the char selector is allowed (can also be a parent class of the actual command class)
Definition at line 31 of file class.ilCharSelectorGUI.php.
|
private |
Definition at line 47 of file class.ilCharSelectorGUI.php.
Referenced by getConfig().
|
protected |
Definition at line 20 of file class.ilCharSelectorGUI.php.
Referenced by addToPage(), and executeCommand().
|
staticprivate |
ilCharSelectorGUI instance used for the current selector
Definition at line 42 of file class.ilCharSelectorGUI.php.
|
protected |
Definition at line 15 of file class.ilCharSelectorGUI.php.
Referenced by addFormProperties(), addToPage(), and getSelectorHTML().
|
protected |
Definition at line 25 of file class.ilCharSelectorGUI.php.
Referenced by addFormProperties(), addToPage(), and getSelectorHTML().