ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
setConfig (ilCharSelectorConfig $a_config) | |
getConfig () | |
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 () | |
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 | |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilGlobalTemplateInterface | $tpl |
stdClass | $jsconfig |
stdClass | $jstexts |
ILIAS Refinery Factory | $refinery |
ILIAS HTTP Wrapper WrapperFactory | $wrapper |
Private Attributes | |
ilCharSelectorConfig | $config = null |
bool | $added_to_page = false |
Static Private Attributes | |
static array | $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 ilCharSelectorGUI | $current_gui |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning This shows a character selector
Definition at line 23 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)
Definition at line 103 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.
References $DIC.
Referenced by ilPropertyFormGUI\getContent().
ilCharSelectorGUI::addFormProperties | ( | ilPropertyFormGUI | $a_form | ) |
add the configuration elements to a property form
Definition at line 125 of file class.ilCharSelectorGUI.php.
References ILIAS\LTI\ToolProvider\$enabled, $lng, ilPropertyFormGUI\addItem(), ilCharSelectorConfig\CONTEXT_ADMIN, ilCharSelectorConfig\CONTEXT_TEST, ilCharSelectorConfig\CONTEXT_USER, ilCharSelectorConfig\DISABLED, ilCharSelectorConfig\ENABLED, ilCharSelectorConfig\INACTIVE, ilCharSelectorConfig\INHERIT, ilLanguage\loadLanguageModule(), ilFormPropertyGUI\setInfo(), and ilLanguage\txt().
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 $ctrl, $lng, $tpl, ilGlobalTemplateInterface\addCss(), ilGlobalTemplateInterface\addJavaScript(), ilGlobalTemplateInterface\addLightbox(), ilGlobalTemplateInterface\addOnLoadCode(), ilSession\get(), getSelectorHTML(), ilUtil\getStyleSheetLocation(), ILIAS\Repository\int(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().
ilCharSelectorGUI::executeCommand | ( | ) |
Definition at line 309 of file class.ilCharSelectorGUI.php.
References $ctrl, and ilCtrl\getCmd().
ilCharSelectorGUI::getConfig | ( | ) |
Definition at line 117 of file class.ilCharSelectorGUI.php.
References $config.
ilCharSelectorGUI::getFormValues | ( | ilPropertyFormGUI | $a_form | ) |
Set the configuration based on the values of a property 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 254 of file class.ilCharSelectorGUI.php.
References $index, $lng, ilGlobalTemplateInterface\get(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), ilGlobalTemplateInterface\setVariable(), ilGlobalTemplateInterface\touchBlock(), and ilLanguage\txt().
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 284 of file class.ilCharSelectorGUI.php.
References exit, ilSession\get(), ILIAS\Repository\refinery(), and ilSession\set().
ilCharSelectorGUI::setConfig | ( | ilCharSelectorConfig | $a_config | ) |
Definition at line 112 of file class.ilCharSelectorGUI.php.
ilCharSelectorGUI::setFormValues | ( | ilPropertyFormGUI | $a_form | ) |
Set the values in a property form based on the configuration.
Definition at line 184 of file class.ilCharSelectorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
|
private |
Definition at line 48 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 35 of file class.ilCharSelectorGUI.php.
|
private |
Definition at line 45 of file class.ilCharSelectorGUI.php.
Referenced by getConfig().
|
protected |
Definition at line 26 of file class.ilCharSelectorGUI.php.
Referenced by addToPage(), and executeCommand().
|
staticprivate |
Definition at line 44 of file class.ilCharSelectorGUI.php.
|
protected |
Definition at line 28 of file class.ilCharSelectorGUI.php.
|
protected |
Definition at line 29 of file class.ilCharSelectorGUI.php.
|
protected |
Definition at line 25 of file class.ilCharSelectorGUI.php.
Referenced by addFormProperties(), addToPage(), and getSelectorHTML().
|
protected |
Definition at line 50 of file class.ilCharSelectorGUI.php.
|
protected |
Definition at line 27 of file class.ilCharSelectorGUI.php.
Referenced by addToPage().
|
protected |
Definition at line 51 of file class.ilCharSelectorGUI.php.