ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 283 of file ilCharSelectorConfig.php.
|
static |
Get the configuration that should be used for the current selector.
object | (optional) current running test |
Definition at line 301 of file ilCharSelectorConfig.php.
References $ilSetting, and $ilUser.
Referenced by ilCharSelectorGUI\_getCurrentGUI().
|
private |
Extract the unicode block name from a definition item.
string | definition item |
Definition at line 519 of file ilCharSelectorConfig.php.
References array.
Referenced by setDefinition().
ilCharSelectorConfig::getAddedBlocks | ( | ) |
set the added unicode blocks
Definition at line 397 of file ilCharSelectorConfig.php.
References $added_blocks.
ilCharSelectorConfig::getAvailability | ( | ) |
get the availability of the selector
Definition at line 373 of file ilCharSelectorConfig.php.
References $availability.
ilCharSelectorConfig::getBlockOptions | ( | ) |
get the options for a block selection
Definition at line 479 of file ilCharSelectorConfig.php.
References $lng, $options, array, and getBlockTitle().
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 501 of file ilCharSelectorConfig.php.
References $lng.
Referenced by getBlockOptions(), and getCharPages().
ilCharSelectorConfig::getCharPages | ( | ) |
Get the character pages.
Definition at line 539 of file ilCharSelectorConfig.php.
References $added_blocks, $end, $lng, array, getBlockTitle(), getItemCodepoint(), and getItemParsed().
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 417 of file ilCharSelectorConfig.php.
ilCharSelectorConfig::getDefinition | ( | ) |
Set the definition of the available characters.
Definition at line 465 of file ilCharSelectorConfig.php.
|
private |
get the unicode index of an item
string | $a_item |
Definition at line 585 of file ilCharSelectorConfig.php.
References utf8ToCodepoint().
Referenced by getCharPages().
|
private |
replace unicode notations with their utf8 chars in a string
string | $a_item |
Definition at line 601 of file ilCharSelectorConfig.php.
References array.
Referenced by getCharPages().
|
private |
callback for replacement of unicode notations
array | preg matches |
Definition at line 615 of file ilCharSelectorConfig.php.
References codepointToUtf8().
ilCharSelectorConfig::setAddedBlocks | ( | $a_blocks = array() | ) |
set the added unicode blocks
array | list of block names |
Definition at line 382 of file ilCharSelectorConfig.php.
References array.
ilCharSelectorConfig::setAvailability | ( | $a_availability | ) |
set the availability of the selector
int | availability |
Definition at line 354 of file ilCharSelectorConfig.php.
ilCharSelectorConfig::setCustomItems | ( | $a_items = '' | ) |
set the custom items
array | list of strings |
Definition at line 407 of file ilCharSelectorConfig.php.
ilCharSelectorConfig::setDefinition | ( | $a_definition = '' | ) |
Definition at line 438 of file ilCharSelectorConfig.php.
References array, and extractUnicodeBlock().
|
private |
Definition at line 270 of file ilCharSelectorConfig.php.
Referenced by getAddedBlocks(), and getCharPages().
|
private |
Definition at line 265 of file ilCharSelectorConfig.php.
Referenced by getAvailability().
|
private |
Definition at line 260 of file ilCharSelectorConfig.php.
Referenced by getContext().
|
private |
Definition at line 275 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 ilCharSelectorGUI\addFormProperties(), ilObjAdvancedEditingGUI\saveCharSelectorSettingsObject(), and ilObjAdvancedEditingGUI\showCharSelectorSettingsObject().
const ilCharSelectorConfig::CONTEXT_NONE = '' |
Configuration contexts.
Definition at line 18 of file ilCharSelectorConfig.php.
const ilCharSelectorConfig::CONTEXT_TEST = 'test' |
Definition at line 21 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), and ilObjTestSettingsGeneralGUI\saveQuestionBehaviourProperties().
const ilCharSelectorConfig::CONTEXT_USER = 'user' |
Definition at line 20 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties(), ilPersonalSettingsGUI\initGeneralSettingsForm(), and ilPersonalSettingsGUI\saveGeneralSettings().
const ilCharSelectorConfig::DISABLED = 2 |
Definition at line 13 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties().
const ilCharSelectorConfig::ENABLED = 1 |
Definition at line 12 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties(), ilCharSelectorRadioGroupInputGUI\checkInput(), ilPropertyFormGUI\getContent(), and ilTestPlayerAbstractGUI\populateCharSelectorIfRequired().
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 ilCharSelectorGUI\addFormProperties().
const ilCharSelectorConfig::INHERIT = 0 |
Definition at line 11 of file ilCharSelectorConfig.php.
Referenced by ilCharSelectorGUI\addFormProperties().