|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Collaboration diagram for ilCharSelectorConfig:Public Member Functions | |
| __construct ($a_context=self::CONTEXT_NONE) | |
| Constructor. More... | |
| getContext () | |
| get the context of the configuration (the context is set at initialisation and can't be changed) More... | |
| setAvailability ($a_availability) | |
| set the availability of the selector More... | |
| getAvailability () | |
| get the availability of the selector More... | |
| setAddedBlocks ($a_blocks=array()) | |
| set the added unicode blocks More... | |
| getAddedBlocks () | |
| set the added unicode blocks More... | |
| setCustomItems ($a_items='') | |
| set the custom items More... | |
| getCustomItems () | |
| set the custom items More... | |
| setDefinition ($a_definition='') | |
| getDefinition () | |
| Set the definition of the available characters. More... | |
| getBlockOptions () | |
| get the options for a block selection More... | |
| getBlockTitle ($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 | $unicode_blocks |
Private Member Functions | |
| extractUnicodeBlock ($a_item='') | |
| Extract the unicode block name from a definition item. More... | |
| getItemCodepoint ($a_item) | |
| get the unicode index of an item More... | |
| getItemParsed ($a_item) | |
| replace unicode notations with their utf8 chars in a string More... | |
| getItemParsedCallback ($matches) | |
| callback for replacement of unicode notations More... | |
Private Attributes | |
| $context = self::CONTEXT_NONE | |
| $availability = self::INHERIT | |
| $added_blocks = array() | |
| $custom_items = array() | |
Definition at line 4 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::__construct | ( | $a_context = self::CONTEXT_NONE | ) |
Constructor.
| string | context identifier |
| bool | read the settings for the given context |
Definition at line 284 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.
| object | (optional) current running test |
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 |
Extract the unicode block name from a definition item.
| string | definition item |
Definition at line 540 of file ilCharSelectorConfig.php.
Referenced by setDefinition().
Here is the caller graph for this function:| ilCharSelectorConfig::getAddedBlocks | ( | ) |
set the added unicode blocks
Definition at line 408 of file ilCharSelectorConfig.php.
References $added_blocks.
| ilCharSelectorConfig::getAvailability | ( | ) |
get the availability of the selector
Definition at line 382 of file ilCharSelectorConfig.php.
References $availability.
| ilCharSelectorConfig::getBlockOptions | ( | ) |
get the options for a block selection
Definition at line 496 of file ilCharSelectorConfig.php.
References $lng, $options, and getBlockTitle().
Here is the call graph for this function:| ilCharSelectorConfig::getBlockTitle | ( | $a_block_name | ) |
Get the title of a unicode block for display or selection A translation is used if it exists.
| string | block name |
Definition at line 519 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 562 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 352 of file ilCharSelectorConfig.php.
References $context.
| ilCharSelectorConfig::getCustomItems | ( | ) |
set the custom items
Definition at line 428 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::getDefinition | ( | ) |
Set the definition of the available characters.
Definition at line 481 of file ilCharSelectorConfig.php.
|
private |
get the unicode index of an item
| string | $a_item |
Definition at line 614 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
| string | $a_item |
Definition at line 633 of file ilCharSelectorConfig.php.
Referenced by getCharPages().
Here is the caller graph for this function:
|
private |
callback for replacement of unicode notations
| array | preg matches |
Definition at line 647 of file ilCharSelectorConfig.php.
References codepointToUtf8().
Here is the call graph for this function:| ilCharSelectorConfig::setAddedBlocks | ( | $a_blocks = array() | ) |
set the added unicode blocks
| array | list of block names |
Definition at line 391 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::setAvailability | ( | $a_availability | ) |
set the availability of the selector
| int | availability |
Definition at line 362 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::setCustomItems | ( | $a_items = '' | ) |
set the custom items
| array | list of strings |
Definition at line 418 of file ilCharSelectorConfig.php.
| ilCharSelectorConfig::setDefinition | ( | $a_definition = '' | ) |
Definition at line 449 of file ilCharSelectorConfig.php.
References extractUnicodeBlock().
Here is the call graph for this function:
|
private |
Definition at line 271 of file ilCharSelectorConfig.php.
Referenced by getAddedBlocks(), and getCharPages().
|
private |
Definition at line 266 of file ilCharSelectorConfig.php.
Referenced by getAvailability().
|
private |
Definition at line 261 of file ilCharSelectorConfig.php.
Referenced by getContext().
|
private |
Definition at line 276 of file ilCharSelectorConfig.php.
|
static |
Definition at line 27 of file ilCharSelectorConfig.php.
| const ilCharSelectorConfig::CONTEXT_ADMIN = 'admin' |
Definition at line 19 of file ilCharSelectorConfig.php.
Referenced by __construct(), _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), and ilObjAdvancedEditingGUI\showCharSelectorSettingsObject().
| const ilCharSelectorConfig::CONTEXT_NONE = '' |
Configuration contexts.
Definition at line 18 of file ilCharSelectorConfig.php.
Referenced by __construct().
| const ilCharSelectorConfig::CONTEXT_TEST = 'test' |
Definition at line 21 of file ilCharSelectorConfig.php.
Referenced by __construct(), _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), and ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties().
| const ilCharSelectorConfig::CONTEXT_USER = 'user' |
Definition at line 20 of file ilCharSelectorConfig.php.
Referenced by __construct(), _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilPersonalSettingsGUI\initGeneralSettingsForm(), and ilPersonalSettingsGUI\saveGeneralSettings().
| const ilCharSelectorConfig::DISABLED = 2 |
Definition at line 13 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties(), and setAvailability().
| const ilCharSelectorConfig::ENABLED = 1 |
Definition at line 12 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 10 of file ilCharSelectorConfig.php.
Referenced by _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), and setAvailability().
| const ilCharSelectorConfig::INHERIT = 0 |
Definition at line 11 of file ilCharSelectorConfig.php.
Referenced by _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), and setAvailability().