|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Description of class. More...
Collaboration diagram for ilECSCourseMappingRule:Public Member Functions | |
| __construct ($a_rid=0) | |
| Constructor. More... | |
| doMapping ($course, $parent_ref) | |
| Do mapping. More... | |
| matches ($course) | |
| Check if rule matches. More... | |
| setRuleId ($a_rule_id) | |
| getRuleId () | |
| setServerId ($a_server_id) | |
| getServerId () | |
| setMid ($a_mid) | |
| getMid () | |
| setAttribute ($a_att) | |
| getAttribute () | |
| setRefId ($a_ref_id) | |
| getRefId () | |
| enableFilter ($a_status) | |
| isFilterEnabled () | |
| setFilter ($a_filter) | |
| getFilter () | |
| getFilterElements () | |
| enableSubdirCreation ($a_stat) | |
| isSubdirCreationEnabled () | |
| setSubDirectoryType ($a_type) | |
| getSubDirectoryType () | |
| setDirectory ($a_dir) | |
| getDirectory () | |
| delete () | |
| save () | |
| Save a new rule @global type $ilDB. More... | |
| update () | |
| Update mapping rule @global type $ilDB. More... | |
Static Public Member Functions | |
| static | lookupLastExistingAttribute ($a_sid, $a_mid, $a_ref_id) |
| Lookup existing attributes. More... | |
| static | getRuleRefIds ($a_sid, $a_mid) |
| static | getRulesOfRefId ($a_sid, $a_mid, $a_ref_id) |
| Get all rule of ref_id @global type $ilDB. More... | |
| static | hasRules ($a_sid, $a_mid, $a_ref_id) |
| static | isMatching ($course, $a_sid, $a_mid, $a_ref_id) |
| Check if rule matches. More... | |
| static | doMappings ($course, $a_sid, $a_mid, $a_ref_id) |
| static | getInstanceByAttribute ($a_sid, $a_mid, $a_ref_id, $a_att) |
| Get rule instance by attribute @global type $ilDB. More... | |
Data Fields | |
| const | SUBDIR_ATTRIBUTE_NAME = 1 |
| const | SUBDIR_VALUE = 2 |
Protected Member Functions | |
| createCategory ($a_title, $a_parent_ref) | |
| Create attribute category. More... | |
| read () | |
| Read db entries. More... | |
| parseFilter () | |
| Parse filter. More... | |
Private Attributes | |
| $rid | |
| $sid | |
| $mid | |
| $attribute | |
| $ref_id | |
| $is_filter = false | |
| $filter | |
| $filter_elements = [] | |
| $create_subdir = true | |
| $subdir_type = self::SUBDIR_VALUE | |
| $directory = '' | |
| $logger = null | |
Description of class.
Definition at line 10 of file class.ilECSCourseMappingRule.php.
| ilECSCourseMappingRule::__construct | ( | $a_rid = 0 | ) |
Constructor.
| int | $a_rid |
Definition at line 36 of file class.ilECSCourseMappingRule.php.
References $GLOBALS, and read().
Here is the call graph for this function:
|
protected |
Create attribute category.
Definition at line 263 of file class.ilECSCourseMappingRule.php.
References $GLOBALS.
Referenced by doMapping().
Here is the caller graph for this function:| ilECSCourseMappingRule::delete | ( | ) |
Definition at line 447 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, and getRuleId().
Here is the call graph for this function:| ilECSCourseMappingRule::doMapping | ( | $course, | |
| $parent_ref | |||
| ) |
Do mapping.
| type | $course | |
| type | $parent_ref |
Definition at line 229 of file class.ilECSCourseMappingRule.php.
References $DIC, $tree, $values, createCategory(), getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), and isSubdirCreationEnabled().
Here is the call graph for this function:
|
static |
| type | $course | |
| type | $a_sid | |
| type | $a_mid | |
| type | $a_ref_id |
Definition at line 185 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, $row, $rule, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
Here is the caller graph for this function:| ilECSCourseMappingRule::enableFilter | ( | $a_status | ) |
Definition at line 392 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::enableSubdirCreation | ( | $a_stat | ) |
Definition at line 417 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::getAttribute | ( | ) |
Definition at line 377 of file class.ilECSCourseMappingRule.php.
References $attribute.
Referenced by doMapping(), matches(), save(), and update().
Here is the caller graph for this function:| ilECSCourseMappingRule::getDirectory | ( | ) |
Definition at line 442 of file class.ilECSCourseMappingRule.php.
References $directory.
Referenced by save(), and update().
Here is the caller graph for this function:| ilECSCourseMappingRule::getFilter | ( | ) |
Definition at line 407 of file class.ilECSCourseMappingRule.php.
References $filter.
Referenced by parseFilter(), save(), and update().
Here is the caller graph for this function:| ilECSCourseMappingRule::getFilterElements | ( | ) |
Definition at line 412 of file class.ilECSCourseMappingRule.php.
References $filter_elements.
Referenced by matches().
Here is the caller graph for this function:
|
static |
Get rule instance by attribute @global type $ilDB.
| type | $a_sid | |
| type | $a_mid | |
| type | $a_ref_id | |
| type | $a_att |
Definition at line 323 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm(), and ilECSMappingSettingsGUI\cSaveOverview().
Here is the caller graph for this function:| ilECSCourseMappingRule::getMid | ( | ) |
Definition at line 367 of file class.ilECSCourseMappingRule.php.
References $mid.
Referenced by save().
Here is the caller graph for this function:| ilECSCourseMappingRule::getRefId | ( | ) |
Definition at line 387 of file class.ilECSCourseMappingRule.php.
References $ref_id.
Referenced by save(), and update().
Here is the caller graph for this function:| ilECSCourseMappingRule::getRuleId | ( | ) |
|
static |
| type | $a_sid | |
| type | $a_mid |
Definition at line 73 of file class.ilECSCourseMappingRule.php.
References $DIC, $GLOBALS, $ilDB, $query, $ref_id, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping(), and ilECSNodeMappingLocalExplorer\initMappings().
Here is the caller graph for this function:
|
static |
Get all rule of ref_id @global type $ilDB.
| type | $a_sid | |
| type | $a_mid | |
| type | $a_ref_id |
Definition at line 109 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cDeleteRulesOfNode().
Here is the caller graph for this function:| ilECSCourseMappingRule::getServerId | ( | ) |
Definition at line 357 of file class.ilECSCourseMappingRule.php.
References $sid.
Referenced by save().
Here is the caller graph for this function:| ilECSCourseMappingRule::getSubDirectoryType | ( | ) |
Definition at line 432 of file class.ilECSCourseMappingRule.php.
References SUBDIR_VALUE.
Referenced by save(), and update().
Here is the caller graph for this function:
|
static |
Definition at line 127 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm().
Here is the caller graph for this function:| ilECSCourseMappingRule::isFilterEnabled | ( | ) |
Definition at line 397 of file class.ilECSCourseMappingRule.php.
References $is_filter.
Referenced by matches(), save(), and update().
Here is the caller graph for this function:
|
static |
Check if rule matches.
| type | $course | |
| type | $a_start_rule_id |
Definition at line 147 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, $row, $rule, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
Here is the caller graph for this function:| ilECSCourseMappingRule::isSubdirCreationEnabled | ( | ) |
Definition at line 422 of file class.ilECSCourseMappingRule.php.
References $create_subdir.
Referenced by doMapping(), save(), and update().
Here is the caller graph for this function:
|
static |
Lookup existing attributes.
| type | $a_attributes |
Definition at line 48 of file class.ilECSCourseMappingRule.php.
References $attributes, $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitOverview().
Here is the caller graph for this function:| ilECSCourseMappingRule::matches | ( | $course | ) |
Check if rule matches.
| type | $course |
Definition at line 290 of file class.ilECSCourseMappingRule.php.
References $index, $values, getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), getFilterElements(), and isFilterEnabled().
Here is the call graph for this function:
|
protected |
Parse filter.
Definition at line 545 of file class.ilECSCourseMappingRule.php.
References $filter, $filter_elements, and getFilter().
Referenced by read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read db entries.
Definition at line 515 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, $row, enableFilter(), enableSubdirCreation(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), parseFilter(), setAttribute(), setDirectory(), setFilter(), setMid(), setRefId(), setServerId(), and setSubDirectoryType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSCourseMappingRule::save | ( | ) |
Save a new rule @global type $ilDB.
Definition at line 464 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, getAttribute(), getDirectory(), getFilter(), getMid(), getRefId(), getRuleId(), getServerId(), getSubDirectoryType(), isFilterEnabled(), isSubdirCreationEnabled(), and setRuleId().
Here is the call graph for this function:| ilECSCourseMappingRule::setAttribute | ( | $a_att | ) |
Definition at line 372 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setDirectory | ( | $a_dir | ) |
Definition at line 437 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setFilter | ( | $a_filter | ) |
Definition at line 402 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setMid | ( | $a_mid | ) |
Definition at line 362 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setRefId | ( | $a_ref_id | ) |
Definition at line 382 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setRuleId | ( | $a_rule_id | ) |
Definition at line 342 of file class.ilECSCourseMappingRule.php.
Referenced by save().
Here is the caller graph for this function:| ilECSCourseMappingRule::setServerId | ( | $a_server_id | ) |
Definition at line 352 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setSubDirectoryType | ( | $a_type | ) |
Definition at line 427 of file class.ilECSCourseMappingRule.php.
References $a_type.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::update | ( | ) |
Update mapping rule @global type $ilDB.
Definition at line 493 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, getAttribute(), getDirectory(), getFilter(), getRefId(), getRuleId(), getSubDirectoryType(), isFilterEnabled(), and isSubdirCreationEnabled().
Here is the call graph for this function:
|
private |
Definition at line 18 of file class.ilECSCourseMappingRule.php.
Referenced by getAttribute().
|
private |
Definition at line 23 of file class.ilECSCourseMappingRule.php.
Referenced by isSubdirCreationEnabled().
|
private |
Definition at line 25 of file class.ilECSCourseMappingRule.php.
Referenced by getDirectory().
|
private |
Definition at line 21 of file class.ilECSCourseMappingRule.php.
Referenced by getFilter(), and parseFilter().
|
private |
Definition at line 22 of file class.ilECSCourseMappingRule.php.
Referenced by getFilterElements(), and parseFilter().
|
private |
Definition at line 20 of file class.ilECSCourseMappingRule.php.
Referenced by isFilterEnabled().
|
private |
Definition at line 30 of file class.ilECSCourseMappingRule.php.
|
private |
Definition at line 17 of file class.ilECSCourseMappingRule.php.
Referenced by getMid().
|
private |
Definition at line 19 of file class.ilECSCourseMappingRule.php.
Referenced by getRefId(), and getRuleRefIds().
|
private |
Definition at line 15 of file class.ilECSCourseMappingRule.php.
Referenced by getRuleId().
|
private |
Definition at line 16 of file class.ilECSCourseMappingRule.php.
Referenced by getServerId().
|
private |
Definition at line 24 of file class.ilECSCourseMappingRule.php.
| const ilECSCourseMappingRule::SUBDIR_ATTRIBUTE_NAME = 1 |
Definition at line 12 of file class.ilECSCourseMappingRule.php.
| const ilECSCourseMappingRule::SUBDIR_VALUE = 2 |
Definition at line 13 of file class.ilECSCourseMappingRule.php.
Referenced by getSubDirectoryType().