ILIAS
Release_4_1_x_branch Revision 61804
|
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) | |
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 ilObjCategoryListGUI\init(), ilObjCourseListGUI\init(), ilObjRemoteCourseListGUI\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 290 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::enableDescription | ( | $a_status | ) |
Enable description presentation.
public
bool | status description enabled |
Definition at line 134 of file class.ilAdvancedMDSubstitution.php.
ilAdvancedMDSubstitution::enabledFieldNames | ( | ) |
is field name enabled
public
Definition at line 145 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 157 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 171 of file class.ilAdvancedMDSubstitution.php.
References ilAdvancedMDValues\_getValuesByObjId(), enabledFieldNames(), getSubstitutions(), hasNewline(), isBold(), and parseValue().
ilAdvancedMDSubstitution::getSubstitutions | ( | ) |
get substitution string
public
Definition at line 310 of file class.ilAdvancedMDSubstitution.php.
Referenced by getParsedSubstitutions(), and isSubstituted().
ilAdvancedMDSubstitution::hasNewline | ( | $a_field_id | ) |
has newline
public
int | field_id |
Definition at line 348 of file class.ilAdvancedMDSubstitution.php.
Referenced by getParsedSubstitutions(), and update().
|
private |
init ECS mappings
private
Definition at line 463 of file class.ilAdvancedMDSubstitution.php.
References ilECSDataMappingSettings\_getInstance().
Referenced by __construct().
ilAdvancedMDSubstitution::isActive | ( | ) |
Is substitution active.
public
Definition at line 111 of file class.ilAdvancedMDSubstitution.php.
References $active.
ilAdvancedMDSubstitution::isBold | ( | $a_field_id | ) |
is bold
public
int | field_id |
Definition at line 334 of file class.ilAdvancedMDSubstitution.php.
Referenced by getParsedSubstitutions(), and update().
ilAdvancedMDSubstitution::isDescriptionEnabled | ( | ) |
Is description enabled.
public
Definition at line 122 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 322 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 | values public |
Definition at line 227 of file class.ilAdvancedMDSubstitution.php.
References ilCalendarUtil\_numericDayToString(), ilDatePresentation\formatDate(), ilDatePresentation\formatPeriod(), IL_CAL_FKT_DATE, IL_CAL_UNIX, and ilDatePresentation\setUseRelativeDates().
Referenced by getParsedSubstitutions().
|
private |
Read db entries.
private
Definition at line 392 of file class.ilAdvancedMDSubstitution.php.
References $ilDB, $query, $res, $row, ilAdvancedMDFieldDefinition\_lookupDateFields(), and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilAdvancedMDSubstitution::resetSubstitutions | ( | ) |
set substitutions
public
array | array of field definitions |
Definition at line 276 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 358 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.