|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilCharSelectorConfig:Public Member Functions | |
| __construct (string $a_context=self::CONTEXT_NONE) | |
| getContext () | |
| get the context of the configuration (the context is set at initialisation and can't be changed) More... | |
| setAvailability (int $a_availability) | |
| getAvailability () | |
| setAddedBlocks (array $a_blocks=array()) | |
| getAddedBlocks () | |
| setCustomItems (string $a_items='') | |
| set the custom items More... | |
| getCustomItems () | |
| set the custom items More... | |
| setDefinition (string $a_definition='') | |
| getDefinition () | |
| Set the definition of the available characters. More... | |
| getBlockOptions () | |
| get the options for a block selection More... | |
| getBlockTitle (string $a_block_name) | |
| Get the title of a unicode block for display or selection A translation is used if it exists. More... | |
| getCharPages () | |
| Get the character pages. More... | |
Static Public Member Functions | |
| static | _getCurrentConfig (ilObjTest $a_test_obj=null) |
| Get the configuration that should be used for the current selector. More... | |
Data Fields | |
| const | INACTIVE = 0 |
| Availabilities INACTIVE/INHERIT corresponds to an unconfigured selector (no database entries) More... | |
| const | INHERIT = 0 |
| const | ENABLED = 1 |
| const | DISABLED = 2 |
| const | CONTEXT_NONE = '' |
| Configuration contexts. More... | |
| const | CONTEXT_ADMIN = 'admin' |
| const | CONTEXT_USER = 'user' |
| const | CONTEXT_TEST = 'test' |
Static Public Attributes | |
| static array | $unicode_blocks |
Private Member Functions | |
| extractUnicodeBlock (string $a_item='') | |
| Extract the unicode block name from a definition item. More... | |
| getItemCodepoint (string $a_item) | |
| get the unicode index of an item More... | |
| getItemParsed (string $a_item) | |
| replace unicode notations with their utf8 chars in a string More... | |
| getItemParsedCallback (array $matches) | |
| callback for replacement of unicode notations More... | |
| codepointToUtf8 (int $codepoint) | |
| Return the UTF-8 sequence for a given Unicode code point. More... | |
| utf8ToCodepoint (string $char) | |
| Determine the Unicode codepoint of a single-character UTF-8 sequence. More... | |
Private Attributes | |
| string | $context = self::CONTEXT_NONE |
| int | $availability = self::INHERIT |
| array | $added_blocks = array() |
| array | $custom_items = array() |
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
Definition at line 19 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::__construct | ( | string | $a_context = self::CONTEXT_NONE | ) |
Definition at line 287 of file ilCharSelectorConfig.php.
References CONTEXT_ADMIN, CONTEXT_NONE, CONTEXT_TEST, and CONTEXT_USER.
|
static |
Get the configuration that should be used for the current selector.
Definition at line 303 of file ilCharSelectorConfig.php.
References $ilSetting, $ilUser, CONTEXT_ADMIN, CONTEXT_TEST, CONTEXT_USER, INACTIVE, and INHERIT.
Referenced by ilCharSelectorGUI\_getCurrentGUI().
Here is the caller graph for this function:
|
private |
Return the UTF-8 sequence for a given Unicode code point.
Returns an empty string if the codepoint is not known.
Taken and adapted from UtfNormalUtil which is removed from ILIAS since 8.0 Copyright (C) 2004 Brion Vibber brion.nosp@m.@pob.nosp@m.ox.co.nosp@m.m
Definition at line 596 of file ilCharSelectorConfig.php.
Referenced by getItemParsedCallback().
Here is the caller graph for this function:
|
private |
Extract the unicode block name from a definition item.
| string | $a_item | definition item |
Definition at line 493 of file ilCharSelectorConfig.php.
Referenced by setDefinition().
Here is the caller graph for this function:| ilCharSelectorConfig::getAddedBlocks | ( | ) |
Definition at line 381 of file ilCharSelectorConfig.php.
References $added_blocks.
| ilCharSelectorConfig::getAvailability | ( | ) |
Definition at line 363 of file ilCharSelectorConfig.php.
References $availability.
| ilCharSelectorConfig::getBlockOptions | ( | ) |
get the options for a block selection
Definition at line 458 of file ilCharSelectorConfig.php.
References $lng, and getBlockTitle().
Here is the call graph for this function:| ilCharSelectorConfig::getBlockTitle | ( | string | $a_block_name | ) |
Get the title of a unicode block for display or selection A translation is used if it exists.
Definition at line 476 of file ilCharSelectorConfig.php.
References $lng.
Referenced by getBlockOptions(), and getCharPages().
Here is the caller graph for this function:| ilCharSelectorConfig::getCharPages | ( | ) |
Get the character pages.
Definition at line 511 of file ilCharSelectorConfig.php.
References $added_blocks, $lng, getBlockTitle(), getItemCodepoint(), and getItemParsed().
Here is the call graph for this function:| ilCharSelectorConfig::getContext | ( | ) |
get the context of the configuration (the context is set at initialisation and can't be changed)
Definition at line 344 of file ilCharSelectorConfig.php.
References $context.
| ilCharSelectorConfig::getCustomItems | ( | ) |
set the custom items
Definition at line 399 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::getDefinition | ( | ) |
Set the definition of the available characters.
Definition at line 446 of file ilCharSelectorConfig.php.
|
private |
get the unicode index of an item
Definition at line 555 of file ilCharSelectorConfig.php.
References utf8ToCodepoint().
Referenced by getCharPages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
replace unicode notations with their utf8 chars in a string
Definition at line 568 of file ilCharSelectorConfig.php.
Referenced by getCharPages().
Here is the caller graph for this function:
|
private |
callback for replacement of unicode notations
| array | $matches | preg matches |
Definition at line 582 of file ilCharSelectorConfig.php.
References codepointToUtf8().
Here is the call graph for this function:| ilCharSelectorConfig::setAddedBlocks | ( | array | $a_blocks = array() | ) |
| array | $a_blocks | list of block names |
Definition at line 371 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::setAvailability | ( | int | $a_availability | ) |
Definition at line 349 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::setCustomItems | ( | string | $a_items = '' | ) |
set the custom items
Definition at line 390 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::setDefinition | ( | string | $a_definition = '' | ) |
Definition at line 420 of file ilCharSelectorConfig.php.
References extractUnicodeBlock().
Here is the call graph for this function:
|
private |
Determine the Unicode codepoint of a single-character UTF-8 sequence.
Does not check for invalid input data.
Taken and adapted from UtfNormalUtil which is removed from ILIAS since 8.0 Copyright (C) 2004 Brion Vibber brion.nosp@m.@pob.nosp@m.ox.co.nosp@m.m
Definition at line 629 of file ilCharSelectorConfig.php.
References $i.
Referenced by getItemCodepoint().
Here is the caller graph for this function:
|
private |
Definition at line 282 of file ilCharSelectorConfig.php.
Referenced by getAddedBlocks(), and getCharPages().
|
private |
Definition at line 279 of file ilCharSelectorConfig.php.
Referenced by getAvailability().
|
private |
Definition at line 276 of file ilCharSelectorConfig.php.
Referenced by getContext().
|
private |
Definition at line 285 of file ilCharSelectorConfig.php.
|
static |
Definition at line 42 of file ilCharSelectorConfig.php.
| const ilCharSelectorConfig::CONTEXT_ADMIN = 'admin' |
Definition at line 34 of file ilCharSelectorConfig.php.
Referenced by __construct(), _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), and ilObjAdvancedEditingGUI\showCharSelectorSettingsObject().
| const ilCharSelectorConfig::CONTEXT_NONE = '' |
Configuration contexts.
Definition at line 33 of file ilCharSelectorConfig.php.
Referenced by __construct().
| const ilCharSelectorConfig::CONTEXT_TEST = 'test' |
Definition at line 36 of file ilCharSelectorConfig.php.
Referenced by __construct(), _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), and ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties().
| const ilCharSelectorConfig::CONTEXT_USER = 'user' |
Definition at line 35 of file ilCharSelectorConfig.php.
Referenced by __construct(), _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilPersonalSettingsGUI\initGeneralSettingsForm(), and ilPersonalSettingsGUI\saveGeneralSettings().
| const ilCharSelectorConfig::DISABLED = 2 |
Definition at line 28 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties(), and setAvailability().
| const ilCharSelectorConfig::ENABLED = 1 |
Definition at line 27 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilPropertyFormGUI\getContent(), ilTestPlayerAbstractGUI\populateCharSelectorIfRequired(), and setAvailability().
| const ilCharSelectorConfig::INACTIVE = 0 |
Availabilities INACTIVE/INHERIT corresponds to an unconfigured selector (no database entries)
Definition at line 25 of file ilCharSelectorConfig.php.
Referenced by _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), and setAvailability().
| const ilCharSelectorConfig::INHERIT = 0 |
Definition at line 26 of file ilCharSelectorConfig.php.
Referenced by _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), and setAvailability().