ILIAS
Release_5_0_x_branch Revision 61816
|
This shows a character selector. More...
Public Member Functions | |
__construct ($a_context=ilCharSelectorConfig::CONTEXT_NONE) | |
Constructor. | |
setConfig (ilCharSelectorConfig $a_config) | |
Set the configuraton object. | |
getConfig () | |
Get the configuraton object. | |
addFormProperties (ilPropertyFormGUI $a_form) | |
add the configuration elements to a property form | |
setFormValues (ilPropertyFormGUI $a_form) | |
Set the values in a property form based on the configuration. | |
getFormValues (ilPropertyFormGUI $a_form) | |
Set the configuration based on the values of a property form. | |
addToPage () | |
Adds the the character selector to the ilias page Initializes the selector according to the state saved in the user session. | |
getSelectorHTML () | |
Get the HTML code of the selector panel. | |
saveState () | |
Save the selector panel state in the user session (This keeps the panel state between page moves) | |
executeCommand () | |
execute command |
Static Public Member Functions | |
static | _isAllowed () |
Check if the CharSelector is allowed for the current GUI. | |
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) |
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) | |
static | $current_gui |
ilCharSelectorGUI instance used for the current selector |
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\populateCharSelector().
|
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().
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, 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 207 of file class.ilCharSelectorGUI.php.
References $_SESSION, $ilCtrl, $lng, $tpl, getSelectorHTML(), and ilUtil\getStyleSheetLocation().
ilCharSelectorGUI::executeCommand | ( | ) |
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().
ilCharSelectorGUI::getSelectorHTML | ( | ) |
Get the HTML code of the selector panel.
Definition at line 246 of file class.ilCharSelectorGUI.php.
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 278 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().
|
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().