|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Defines a rule for the assignment of ECS remote courses to categories. More...
Collaboration diagram for ilECSCategoryMappingRule:Public Member Functions | |
| __construct ($a_mapping_id=0) | |
| Constructor. More... | |
| getMappingId () | |
| get mapping id More... | |
| setContainerId ($a_id) | |
| set container id More... | |
| getContainerId () | |
| get container id More... | |
| setDateRangeStart ($start) | |
| set date range start More... | |
| getDateRangeStart () | |
| get date range start More... | |
| setDateRangeEnd ($end) | |
| set date range end More... | |
| getDateRangeEnd () | |
| get date range end More... | |
| setFieldName ($a_field) | |
| set field name More... | |
| getFieldName () | |
| get field name More... | |
| setMappingType ($a_type) | |
| set mapping type More... | |
| getMappingType () | |
| get mapping type More... | |
| setMappingValue ($a_value) | |
| set mapping value More... | |
| getMappingValue () | |
| get mapping value More... | |
| getMappingAsArray () | |
| get mapping values as array More... | |
| setByType ($a_type) | |
| set mapping by type More... | |
| getByType () | |
| get mapping by type More... | |
| delete () | |
| delete rule More... | |
| update () | |
| update More... | |
| save () | |
| save More... | |
| validate () | |
| validate rule More... | |
| conditionToString () | |
| condition to string More... | |
| participantsToString () | |
| get strong presentation of participants More... | |
| matches (array $a_matchable_content) | |
| Check if rule matches a specific econtent. More... | |
Data Fields | |
| const | ATTR_STRING = 1 |
| const | ATTR_INT = 2 |
| const | ATTR_ARRAY = 3 |
| const | TYPE_FIXED = 0 |
| const | TYPE_DURATION = 1 |
| const | TYPE_BY_TYPE = 2 |
| const | ERR_MISSING_VALUE = 'ecs_err_missing_value' |
| const | ERR_INVALID_DATES = 'ecs_err_invalid_dates' |
| const | ERR_INVALID_TYPE = 'ecs_err_invalid_type' |
| const | ERR_MISSING_BY_TYPE = 'ecs_err_invalid_by_type' |
Protected Member Functions | |
| setMappingId ($a_id) | |
| set mapping id More... | |
| matchesValue ($a_value, $a_type) | |
| Check if value matches. More... | |
| read () | |
| Read entries. More... | |
Protected Attributes | |
| $db | |
Private Attributes | |
| $mapping_id | |
| $container_id | |
| $field_name | |
| $mapping_type | |
| $mapping_value | |
| $range_dt_start | |
| $range_dt_end | |
| $by_type | |
Defines a rule for the assignment of ECS remote courses to categories.
Definition at line 35 of file class.ilECSCategoryMappingRule.php.
| ilECSCategoryMappingRule::__construct | ( | $a_mapping_id = 0 | ) |
| ilECSCategoryMappingRule::conditionToString | ( | ) |
condition to string
Definition at line 354 of file class.ilECSCategoryMappingRule.php.
References $DIC, $lng, ilDatePresentation\formatPeriod(), getByType(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), participantsToString(), TYPE_BY_TYPE, TYPE_DURATION, and TYPE_FIXED.
Here is the call graph for this function:| ilECSCategoryMappingRule::delete | ( | ) |
delete rule
Definition at line 247 of file class.ilECSCategoryMappingRule.php.
References getMappingId().
Here is the call graph for this function:| ilECSCategoryMappingRule::getByType | ( | ) |
get mapping by type
Definition at line 238 of file class.ilECSCategoryMappingRule.php.
References $by_type.
Referenced by conditionToString(), save(), and update().
Here is the caller graph for this function:| ilECSCategoryMappingRule::getContainerId | ( | ) |
get container id
Definition at line 110 of file class.ilECSCategoryMappingRule.php.
References $container_id.
Referenced by save(), update(), and validate().
Here is the caller graph for this function:| ilECSCategoryMappingRule::getDateRangeEnd | ( | ) |
get date range end
Definition at line 148 of file class.ilECSCategoryMappingRule.php.
References $range_dt_end, getDateRangeStart(), and IL_CAL_MONTH.
Referenced by conditionToString(), matchesValue(), save(), update(), and validate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSCategoryMappingRule::getDateRangeStart | ( | ) |
get date range start
Definition at line 129 of file class.ilECSCategoryMappingRule.php.
References IL_CAL_UNIX.
Referenced by conditionToString(), getDateRangeEnd(), matchesValue(), save(), update(), and validate().
Here is the caller graph for this function:| ilECSCategoryMappingRule::getFieldName | ( | ) |
get field name
Definition at line 172 of file class.ilECSCategoryMappingRule.php.
References $field_name.
Referenced by conditionToString(), matches(), save(), update(), and validate().
Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingAsArray | ( | ) |
get mapping values as array
Definition at line 219 of file class.ilECSCategoryMappingRule.php.
References getMappingValue().
Referenced by matchesValue().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingId | ( | ) |
get mapping id
Definition at line 91 of file class.ilECSCategoryMappingRule.php.
References $mapping_id.
Referenced by delete(), read(), and update().
Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingType | ( | ) |
get mapping type
Definition at line 191 of file class.ilECSCategoryMappingRule.php.
References $mapping_type.
Referenced by conditionToString(), matchesValue(), read(), save(), update(), and validate().
Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingValue | ( | ) |
get mapping value
Definition at line 210 of file class.ilECSCategoryMappingRule.php.
References $mapping_value.
Referenced by conditionToString(), getMappingAsArray(), matchesValue(), participantsToString(), save(), update(), and validate().
Here is the caller graph for this function:| ilECSCategoryMappingRule::matches | ( | array | $a_matchable_content | ) |
Check if rule matches a specific econtent.
| array | $a_matchable_content |
Definition at line 413 of file class.ilECSCategoryMappingRule.php.
References getFieldName(), and matchesValue().
Here is the call graph for this function:
|
protected |
Check if value matches.
| mixed | $a_value | Econtent value |
| int | $a_type | Parameter type |
Definition at line 428 of file class.ilECSCategoryMappingRule.php.
References $a_type, $DIC, $ilLog, ilDateTime\_after(), ilDateTime\_before(), ATTR_ARRAY, ATTR_INT, ATTR_STRING, getDateRangeEnd(), getDateRangeStart(), getMappingAsArray(), getMappingType(), getMappingValue(), IL_CAL_UNIX, TYPE_DURATION, and TYPE_FIXED.
Referenced by matches().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSCategoryMappingRule::participantsToString | ( | ) |
get strong presentation of participants
return
Definition at line 384 of file class.ilECSCategoryMappingRule.php.
References $name, getMappingValue(), and ilECSUtils\lookupParticipantName().
Referenced by conditionToString().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read entries.
Definition at line 481 of file class.ilECSCategoryMappingRule.php.
References $res, getMappingId(), getMappingType(), IL_CAL_UNIX, setByType(), setContainerId(), setDateRangeEnd(), setDateRangeStart(), setFieldName(), setMappingId(), setMappingType(), and setMappingValue().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSCategoryMappingRule::save | ( | ) |
save
Definition at line 293 of file class.ilECSCategoryMappingRule.php.
References $DIC, $ilDB, $mapping_id, $mapping_value, getByType(), getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), and IL_CAL_UNIX.
Here is the call graph for this function:| ilECSCategoryMappingRule::setByType | ( | $a_type | ) |
set mapping by type
| string | $type | Mapping type |
Definition at line 229 of file class.ilECSCategoryMappingRule.php.
References $a_type.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::setContainerId | ( | $a_id | ) |
set container id
| int | $a_id | $a_container_id |
Definition at line 101 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::setDateRangeEnd | ( | $end | ) |
set date range end
| object | $start | ilDate |
Definition at line 139 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::setDateRangeStart | ( | $start | ) |
set date range start
| object | $start | ilDate |
Definition at line 120 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::setFieldName | ( | $a_field | ) |
set field name
| string | $a_field | field name |
Definition at line 163 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
Here is the caller graph for this function:
|
protected |
set mapping id
| int | $a_mapping_id | mapping id |
Definition at line 82 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::setMappingType | ( | $a_type | ) |
set mapping type
| int | $type | Mapping type |
Definition at line 182 of file class.ilECSCategoryMappingRule.php.
References $a_type.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::setMappingValue | ( | $a_value | ) |
set mapping value
| string | $val | Mapping value |
Definition at line 201 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCategoryMappingRule::update | ( | ) |
update
Definition at line 260 of file class.ilECSCategoryMappingRule.php.
References $mapping_value, getByType(), getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingId(), getMappingType(), getMappingValue(), and IL_CAL_UNIX.
Here is the call graph for this function:| ilECSCategoryMappingRule::validate | ( | ) |
validate rule
Definition at line 326 of file class.ilECSCategoryMappingRule.php.
References ilDateTime\_after(), ilObject\_lookupObjId(), ilObject\_lookupType(), ERR_INVALID_DATES, ERR_INVALID_TYPE, ERR_MISSING_BY_TYPE, ERR_MISSING_VALUE, getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), and IL_CAL_DAY.
Here is the call graph for this function:
|
private |
Definition at line 59 of file class.ilECSCategoryMappingRule.php.
Referenced by getByType().
|
private |
Definition at line 53 of file class.ilECSCategoryMappingRule.php.
Referenced by getContainerId().
|
protected |
Definition at line 50 of file class.ilECSCategoryMappingRule.php.
|
private |
Definition at line 54 of file class.ilECSCategoryMappingRule.php.
Referenced by getFieldName().
|
private |
Definition at line 52 of file class.ilECSCategoryMappingRule.php.
Referenced by getMappingId(), and save().
|
private |
Definition at line 55 of file class.ilECSCategoryMappingRule.php.
Referenced by getMappingType().
|
private |
Definition at line 56 of file class.ilECSCategoryMappingRule.php.
Referenced by getMappingValue(), save(), and update().
|
private |
Definition at line 58 of file class.ilECSCategoryMappingRule.php.
Referenced by getDateRangeEnd().
|
private |
Definition at line 57 of file class.ilECSCategoryMappingRule.php.
| const ilECSCategoryMappingRule::ATTR_ARRAY = 3 |
Definition at line 39 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSUtils\getMatchableContent(), and matchesValue().
| const ilECSCategoryMappingRule::ATTR_INT = 2 |
Definition at line 38 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSUtils\getMatchableContent(), and matchesValue().
| const ilECSCategoryMappingRule::ATTR_STRING = 1 |
Definition at line 37 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSUtils\getMatchableContent(), and matchesValue().
| const ilECSCategoryMappingRule::ERR_INVALID_DATES = 'ecs_err_invalid_dates' |
Definition at line 46 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::ERR_INVALID_TYPE = 'ecs_err_invalid_type' |
Definition at line 47 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::ERR_MISSING_BY_TYPE = 'ecs_err_invalid_by_type' |
Definition at line 48 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::ERR_MISSING_VALUE = 'ecs_err_missing_value' |
Definition at line 45 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::TYPE_BY_TYPE = 2 |
Definition at line 43 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSSettingsGUI\addCategoryMapping(), conditionToString(), ilECSSettingsGUI\initCategoryMappingForm(), and ilECSSettingsGUI\updateCategoryMapping().
| const ilECSCategoryMappingRule::TYPE_DURATION = 1 |
Definition at line 42 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSSettingsGUI\addCategoryMapping(), conditionToString(), ilECSSettingsGUI\initCategoryMappingForm(), matchesValue(), and ilECSSettingsGUI\updateCategoryMapping().
| const ilECSCategoryMappingRule::TYPE_FIXED = 0 |
Definition at line 41 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSSettingsGUI\addCategoryMapping(), conditionToString(), ilECSSettingsGUI\initCategoryMappingForm(), matchesValue(), and ilECSSettingsGUI\updateCategoryMapping().