| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Defines a rule for the assignment of ECS remote courses to categories. More...
 Collaboration diagram for ilECSCategoryMappingRule:
 Collaboration diagram for ilECSCategoryMappingRule:| Public Member Functions | |
| __construct ($a_mapping_id=0) | |
| Constructor. | |
| getMappingId () | |
| get mapping id | |
| setContainerId ($a_id) | |
| set container id | |
| getContainerId () | |
| get container id | |
| setDateRangeStart ($start) | |
| set date range start | |
| getDateRangeStart () | |
| get date range start | |
| setDateRangeEnd ($end) | |
| set date range end | |
| getDateRangeEnd () | |
| get date range end | |
| setFieldName ($a_field) | |
| set field name | |
| getFieldName () | |
| get field name | |
| setMappingType ($a_type) | |
| set mapping type | |
| getMappingType () | |
| get mapping type | |
| setMappingValue ($a_value) | |
| set mapping value | |
| getMappingValue () | |
| get mapping value | |
| getMappingAsArray () | |
| get mapping values as array | |
| delete () | |
| delete rule | |
| update () | |
| update | |
| save () | |
| save | |
| validate () | |
| validate rule | |
| conditionToString () | |
| condition to string | |
| participantsToString () | |
| get strong presentation of participants | |
| matches (ilECSEcontent $econtent) | |
| Check if rule matches a specific econtent. | |
| Data Fields | |
| const | ATTR_STRING = 1 | 
| const | ATTR_INT = 2 | 
| const | ATTR_ARRAY = 3 | 
| const | TYPE_FIXED = 0 | 
| const | TYPE_DURATION = 1 | 
| const | ERR_MISSING_VALUE = 'ecs_err_missing_value' | 
| const | ERR_INVALID_DATES = 'ecs_err_invalid_dates' | 
| const | ERR_INVALID_TYPE = 'ecs_err_invalid_type' | 
| Protected Member Functions | |
| setMappingId ($a_id) | |
| set mapping id | |
| matchesValue ($a_value, $a_type) | |
| Check if value matches. | |
| read () | |
| Read entries. | |
| Protected Attributes | |
| $db | |
| Private Attributes | |
| $mapping_id | |
| $container_id | |
| $field_name | |
| $mapping_type | |
| $mapping_value | |
| $range_dt_start | |
| $range_dt_end | |
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 309 of file class.ilECSCategoryMappingRule.php.
References $lng, ilDatePresentation\formatPeriod(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), and participantsToString().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilECSCategoryMappingRule::delete | ( | ) | 
delete rule
Definition at line 224 of file class.ilECSCategoryMappingRule.php.
References getMappingId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilECSCategoryMappingRule::getContainerId | ( | ) | 
get container id
Definition at line 105 of file class.ilECSCategoryMappingRule.php.
References $container_id.
Referenced by save(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getDateRangeEnd | ( | ) | 
get date range end
Definition at line 143 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getDateRangeStart | ( | ) | 
get date range start
Definition at line 124 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:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getFieldName | ( | ) | 
get field name
Definition at line 168 of file class.ilECSCategoryMappingRule.php.
References $field_name.
Referenced by conditionToString(), matches(), save(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingAsArray | ( | ) | 
get mapping values as array
Definition at line 215 of file class.ilECSCategoryMappingRule.php.
References getMappingValue().
Referenced by matchesValue().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingId | ( | ) | 
get mapping id
Definition at line 86 of file class.ilECSCategoryMappingRule.php.
References $mapping_id.
Referenced by delete(), read(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingType | ( | ) | 
get mapping type
Definition at line 187 of file class.ilECSCategoryMappingRule.php.
References $mapping_type.
Referenced by conditionToString(), matchesValue(), save(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::getMappingValue | ( | ) | 
get mapping value
Definition at line 206 of file class.ilECSCategoryMappingRule.php.
References $mapping_value.
Referenced by conditionToString(), getMappingAsArray(), participantsToString(), save(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::matches | ( | ilECSEcontent | $econtent | ) | 
Check if rule matches a specific econtent.
| object | $econtent | ilECSEContent | 
Definition at line 368 of file class.ilECSCategoryMappingRule.php.
References $ilLog, ATTR_ARRAY, ATTR_INT, ATTR_STRING, getFieldName(), and matchesValue().
 Here is the call graph for this function:
 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 405 of file class.ilECSCategoryMappingRule.php.
References $ilLog, ilDateTime\_after(), ilDateTime\_before(), getDateRangeEnd(), getDateRangeStart(), getMappingAsArray(), getMappingType(), and IL_CAL_UNIX.
Referenced by matches().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::participantsToString | ( | ) | 
get strong presentation of participants
| @return | 
Definition at line 336 of file class.ilECSCategoryMappingRule.php.
References getMappingValue(), and ilECSUtils\lookupParticipantName().
Referenced by conditionToString().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Read entries.
Definition at line 461 of file class.ilECSCategoryMappingRule.php.
References $res, $row, getMappingId(), IL_CAL_UNIX, setContainerId(), setDateRangeEnd(), setDateRangeStart(), setFieldName(), setMappingId(), setMappingType(), and setMappingValue().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::save | ( | ) | 
save
Definition at line 263 of file class.ilECSCategoryMappingRule.php.
References $ilDB, $mapping_id, getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingType(), getMappingValue(), and IL_CAL_UNIX.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilECSCategoryMappingRule::setContainerId | ( | $a_id | ) | 
set container id
| int | $a_id | $a_container_id | 
Definition at line 96 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::setDateRangeEnd | ( | $end | ) | 
set date range end
| object | $start | ilDate | 
Definition at line 134 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::setDateRangeStart | ( | $start | ) | 
set date range start
| object | $start | ilDate | 
Definition at line 115 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::setFieldName | ( | $a_field | ) | 
set field name
| string | $a_field | field name | 
Definition at line 159 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
set mapping id
| int | $a_mapping_id | mapping id | 
Definition at line 77 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::setMappingType | ( | $a_type | ) | 
set mapping type
| int | $type | Mapping type | 
Definition at line 178 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::setMappingValue | ( | $a_value | ) | 
set mapping value
| string | $val | Mapping value | 
Definition at line 197 of file class.ilECSCategoryMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilECSCategoryMappingRule::update | ( | ) | 
update
Definition at line 236 of file class.ilECSCategoryMappingRule.php.
References getContainerId(), getDateRangeEnd(), getDateRangeStart(), getFieldName(), getMappingId(), getMappingType(), getMappingValue(), and IL_CAL_UNIX.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilECSCategoryMappingRule::validate | ( | ) | 
validate rule
Definition at line 288 of file class.ilECSCategoryMappingRule.php.
References ilDateTime\_after(), ilObject\_lookupObjId(), ilObject\_lookupType(), ERR_INVALID_DATES, ERR_INVALID_TYPE, ERR_MISSING_VALUE, getContainerId(), getDateRangeEnd(), getDateRangeStart(), getMappingType(), getMappingValue(), and IL_CAL_DAY.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 51 of file class.ilECSCategoryMappingRule.php.
Referenced by getContainerId().
| 
 | protected | 
Definition at line 48 of file class.ilECSCategoryMappingRule.php.
| 
 | private | 
Definition at line 52 of file class.ilECSCategoryMappingRule.php.
Referenced by getFieldName().
| 
 | private | 
Definition at line 50 of file class.ilECSCategoryMappingRule.php.
Referenced by getMappingId(), and save().
| 
 | private | 
Definition at line 53 of file class.ilECSCategoryMappingRule.php.
Referenced by getMappingType().
| 
 | private | 
Definition at line 54 of file class.ilECSCategoryMappingRule.php.
Referenced by getMappingValue().
| 
 | private | 
Definition at line 56 of file class.ilECSCategoryMappingRule.php.
Referenced by getDateRangeEnd().
| 
 | private | 
Definition at line 55 of file class.ilECSCategoryMappingRule.php.
| const ilECSCategoryMappingRule::ATTR_ARRAY = 3 | 
Definition at line 39 of file class.ilECSCategoryMappingRule.php.
Referenced by matches().
| const ilECSCategoryMappingRule::ATTR_INT = 2 | 
Definition at line 38 of file class.ilECSCategoryMappingRule.php.
Referenced by matches().
| const ilECSCategoryMappingRule::ATTR_STRING = 1 | 
Definition at line 37 of file class.ilECSCategoryMappingRule.php.
Referenced by matches().
| const ilECSCategoryMappingRule::ERR_INVALID_DATES = 'ecs_err_invalid_dates' | 
Definition at line 45 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::ERR_INVALID_TYPE = 'ecs_err_invalid_type' | 
Definition at line 46 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::ERR_MISSING_VALUE = 'ecs_err_missing_value' | 
Definition at line 44 of file class.ilECSCategoryMappingRule.php.
Referenced by validate().
| const ilECSCategoryMappingRule::TYPE_DURATION = 1 | 
Definition at line 42 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSSettingsGUI\initCategoryMappingForm().
| const ilECSCategoryMappingRule::TYPE_FIXED = 0 | 
Definition at line 41 of file class.ilECSCategoryMappingRule.php.
Referenced by ilECSSettingsGUI\initCategoryMappingForm().