ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
sortDefinitions ($a_definitions) | |
Sort definitions. | |
isActive () | |
Is substitution active. | |
isDescriptionEnabled () | |
Is description enabled. | |
enableDescription ($a_status) | |
Enable description presentation. | |
enabledFieldNames () | |
is field name enabled | |
enableFieldNames ($a_status) | |
enable field names | |
getParsedSubstitutions ($a_ref_id, $a_obj_id) | |
Substitute. | |
resetSubstitutions () | |
set substitutions | |
appendSubstitution ($a_field_id, $a_bold=false, $a_newline=false) | |
append field to substitutions | |
getSubstitutions () | |
get substitution string | |
isSubstituted ($a_field_id) | |
is substituted | |
isBold ($a_field_id) | |
is bold | |
hasNewline ($a_field_id) | |
has newline | |
update () | |
update |
Static Public Member Functions | |
static | _getInstanceByObjectType ($a_type) |
Singleton: use this method to get an instance. |
Protected Attributes | |
$db | |
$type | |
$substitutions | |
$bold = array() | |
$newline = array() | |
$enabled_desc = true | |
$enabled_field_names = true | |
$active = false | |
$date_fields = array() | |
$datetime_fields = array() | |
$active_fields = array() |
Private Member Functions | |
__construct ($a_type) | |
parseValue ($a_field_id, $a_values_records) | |
special handling for date(time) values and ECS dates | |
read () | |
Read db entries. | |
initECSMappings () | |
init ECS mappings |
Static Private Attributes | |
static | $instances = null |
static | $mappings = null |
Definition at line 32 of file class.ilAdvancedMDSubstitution.php.
|
private |
Definition at line 58 of file class.ilAdvancedMDSubstitution.php.
References $ilDB, initECSMappings(), and read().
|
static |
Singleton: use this method to get an instance.
string | ilias object type (3 or 4 characters) public |
Definition at line 77 of file class.ilAdvancedMDSubstitution.php.
Referenced by ilObjCourseListGUI\init(), ilObjCategoryListGUI\init(), ilObjRemoteCategoryListGUI\init(), ilObjRemoteGlossaryListGUI\init(), ilObjRemoteTestListGUI\init(), ilObjRemoteGroupListGUI\init(), ilObjRemoteLearningModuleListGUI\init(), ilObjRemoteCourseListGUI\init(), ilObjRemoteFileListGUI\init(), ilObjRemoteWikiListGUI\init(), ilObjCourseReferenceListGUI\init(), ilObjCategoryReferenceListGUI\init(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), and ilAdvancedMDSettingsGUI\updateSubstitutions().
ilAdvancedMDSubstitution::appendSubstitution | ( | $a_field_id, | |
$a_bold = false , |
|||
$a_newline = false |
|||
) |
append field to substitutions
public
int | field id |
Definition at line 296 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::enableDescription | ( | $a_status | ) |
Enable description presentation.
public
bool | status description enabled |
Definition at line 136 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::enabledFieldNames | ( | ) |
is field name enabled
public
Definition at line 147 of file class.ilAdvancedMDSubstitution.php.
References $enabled_field_names.
Referenced by getParsedSubstitutions(), and update().
ilAdvancedMDSubstitution::enableFieldNames | ( | $a_status | ) |
enable field names
public
bool | enable/disable status |
Definition at line 159 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::getParsedSubstitutions | ( | $a_ref_id, | |
$a_obj_id | |||
) |
Substitute.
public
int | ref_id |
int | obj_id |
string | description |
Definition at line 173 of file class.ilAdvancedMDSubstitution.php.
References enabledFieldNames(), getSubstitutions(), hasNewline(), isBold(), parseValue(), and ilAdvancedMDValues\preloadedRead().
ilAdvancedMDSubstitution::getSubstitutions | ( | ) |
get substitution string
public
Definition at line 316 of file class.ilAdvancedMDSubstitution.php.
Referenced by getParsedSubstitutions(), and isSubstituted().
ilAdvancedMDSubstitution::hasNewline | ( | $a_field_id | ) |
has newline
public
int | field_id |
Definition at line 354 of file class.ilAdvancedMDSubstitution.php.
Referenced by getParsedSubstitutions(), and update().
|
private |
init ECS mappings
private
Definition at line 467 of file class.ilAdvancedMDSubstitution.php.
References ilECSDataMappingSettings\_getInstance().
Referenced by __construct().
ilAdvancedMDSubstitution::isActive | ( | ) |
Is substitution active.
public
Definition at line 113 of file class.ilAdvancedMDSubstitution.php.
References $active.
ilAdvancedMDSubstitution::isBold | ( | $a_field_id | ) |
is bold
public
int | field_id |
Definition at line 340 of file class.ilAdvancedMDSubstitution.php.
Referenced by getParsedSubstitutions(), and update().
ilAdvancedMDSubstitution::isDescriptionEnabled | ( | ) |
Is description enabled.
public
Definition at line 124 of file class.ilAdvancedMDSubstitution.php.
References $enabled_desc.
Referenced by update().
ilAdvancedMDSubstitution::isSubstituted | ( | $a_field_id | ) |
is substituted
public
int | field_id |
Definition at line 328 of file class.ilAdvancedMDSubstitution.php.
References getSubstitutions().
|
private |
special handling for date(time) values and ECS dates
int | $a_field_id | field ID |
array | $a_values_records | values public |
Definition at line 230 of file class.ilAdvancedMDSubstitution.php.
References $ilUser, and ilADTFactory\getInstance().
Referenced by getParsedSubstitutions().
|
private |
Read db entries.
private
Definition at line 398 of file class.ilAdvancedMDSubstitution.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilAdvancedMDSubstitution::resetSubstitutions | ( | ) |
set substitutions
public
array | array of field definitions |
Definition at line 282 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::sortDefinitions | ( | $a_definitions | ) |
Sort definitions.
public
array | int field_id |
Definition at line 93 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::update | ( | ) |
update
public
Definition at line 364 of file class.ilAdvancedMDSubstitution.php.
References $ilDB, $query, $res, $substitutions, enabledFieldNames(), hasNewline(), isBold(), and isDescriptionEnabled().
|
protected |
Definition at line 46 of file class.ilAdvancedMDSubstitution.php.
Referenced by isActive().
|
protected |
Definition at line 49 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 41 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 47 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 48 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 37 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 44 of file class.ilAdvancedMDSubstitution.php.
Referenced by isDescriptionEnabled().
|
protected |
Definition at line 45 of file class.ilAdvancedMDSubstitution.php.
Referenced by enabledFieldNames().
|
staticprivate |
Definition at line 34 of file class.ilAdvancedMDSubstitution.php.
|
staticprivate |
Definition at line 35 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 42 of file class.ilAdvancedMDSubstitution.php.
|
protected |
Definition at line 40 of file class.ilAdvancedMDSubstitution.php.
Referenced by update().
|
protected |
Definition at line 39 of file class.ilAdvancedMDSubstitution.php.