|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
This shows a character selector. More...
Collaboration diagram for ilCharSelectorGUI: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... | |
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 44 of file class.ilCharSelectorGUI.php.
|
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 87 of file class.ilCharSelectorGUI.php.
References $current_gui, and ilCharSelectorConfig\_getCurrentConfig().
Referenced by ilPropertyFormGUI\getContent(), and ilTestPlayerAbstractGUI\populateCharSelectorIfRequired().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if the CharSelector is allowed for the current GUI.
Definition at line 53 of file class.ilCharSelectorGUI.php.
References $ilCtrl.
Referenced by ilPropertyFormGUI\getContent().
Here is the caller graph for this function:| ilCharSelectorGUI::addFormProperties | ( | ilPropertyFormGUI | $a_form | ) |
add the configuration elements to a property form
| object | property form |
Definition at line 119 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, and ilCharSelectorConfig\INHERIT.
Referenced by ilObjAdvancedEditingGUI\initCharSelectorSettingsForm().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 207 of file class.ilCharSelectorGUI.php.
References $_SESSION, $ilCtrl, $lng, $tpl, getSelectorHTML(), and ilUtil\getStyleSheetLocation().
Here is the call graph for this function:| ilCharSelectorGUI::executeCommand | ( | ) |
execute command
Definition at line 300 of file class.ilCharSelectorGUI.php.
| ilCharSelectorGUI::getConfig | ( | ) |
Get the configuraton object.
Definition at line 110 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 195 of file class.ilCharSelectorGUI.php.
References ilPropertyFormGUI\getInput().
Here is the call graph for this function:| ilCharSelectorGUI::getSelectorHTML | ( | ) |
Get the HTML code of the selector panel.
Definition at line 250 of file class.ilCharSelectorGUI.php.
Referenced by addToPage().
Here is the caller graph for this function:| ilCharSelectorGUI::saveState | ( | ) |
Save the selector panel state in the user session (This keeps the panel state between page moves)
Definition at line 282 of file class.ilCharSelectorGUI.php.
| ilCharSelectorGUI::setConfig | ( | ilCharSelectorConfig | $a_config | ) |
Set the configuraton object.
| ilCharSelectorConfig |
Definition at line 101 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 182 of file class.ilCharSelectorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
Here is the call graph for this function:
|
private |
Definition at line 37 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 16 of file class.ilCharSelectorGUI.php.
|
private |
Definition at line 32 of file class.ilCharSelectorGUI.php.
Referenced by getConfig().
|
staticprivate |
ilCharSelectorGUI instance used for the current selector
Definition at line 27 of file class.ilCharSelectorGUI.php.
Referenced by _getCurrentGUI().