ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_context=self::CONTEXT_NONE) | |
Constructor. | |
getContext () | |
get the context of the configuration (the context is set at initialisation and can't be changed) | |
setAvailability ($a_availability) | |
set the availability of the selector | |
getAvailability () | |
get the availability of the selector | |
setAddedBlocks ($a_blocks=array()) | |
set the added unicode blocks | |
getAddedBlocks () | |
set the added unicode blocks | |
setCustomItems ($a_items= '') | |
set the custom items | |
getCustomItems () | |
set the custom items | |
setDefinition ($a_definition= '') | |
getDefinition () | |
Set the definition of the available characters. | |
getBlockOptions () | |
get the options for a block selection | |
getBlockTitle ($a_block_name) | |
Get the title of a unicode block for display or selection A translation is used if it exists. | |
getCharPages () | |
Get the character pages. |
Static Public Member Functions | |
static | _getCurrentConfig (ilObjTest $a_test_obj=null) |
Get the configuration that should be used for the current selector. |
Data Fields | |
const | INACTIVE = 0 |
Availabilities INACTIVE/INHERIT corresponds to an unconfigured selector (no database entries) | |
const | INHERIT = 0 |
const | ENABLED = 1 |
const | DISABLED = 2 |
const | CONTEXT_NONE = '' |
Configuration contexts. | |
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. | |
getItemCodepoint ($a_item) | |
get the unicode index of an item | |
getItemParsed ($a_item) | |
replace unicode notations with their utf8 chars in a string | |
getItemParsedCallback ($matches) | |
callback for replacement of unicode notations |
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_NONE.
|
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().
|
private |
Extract the unicode block name from a definition item.
string | definition item |
Definition at line 540 of file ilCharSelectorConfig.php.
Referenced by setDefinition().
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().
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().
ilCharSelectorConfig::getCharPages | ( | ) |
Get the character pages.
Definition at line 562 of file ilCharSelectorConfig.php.
References $added_blocks, $lng, 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 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().
|
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().
|
private |
callback for replacement of unicode notations
array | preg matches |
Definition at line 647 of file ilCharSelectorConfig.php.
References codepointToUtf8().
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.
References INHERIT.
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().
|
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 _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 _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), ilObjTestSettingsGeneralGUI\buildForm(), and ilObjTestSettingsGeneralGUI\performSaveForm().
const ilCharSelectorConfig::CONTEXT_USER = 'user' |
Definition at line 20 of file ilCharSelectorConfig.php.
Referenced by _getCurrentConfig(), 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\populateCharSelector().
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(), and ilCharSelectorGUI\addFormProperties().
const ilCharSelectorConfig::INHERIT = 0 |
Definition at line 11 of file ilCharSelectorConfig.php.
Referenced by _getCurrentConfig(), ilCharSelectorGUI\addFormProperties(), and setAvailability().