|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
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 () | |
| 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 | |
| read () | |
| Read db entries. More... | |
Private Attributes | |
| $rid | |
| $sid | |
| $mid | |
| $attribute | |
| $ref_id | |
| $is_filter = false | |
| $filter | |
| $create_subdir = true | |
| $subdir_type = self::SUBDIR_VALUE | |
| $directory = '' | |
Description of class.
Definition at line 10 of file class.ilECSCourseMappingRule.php.
| ilECSCourseMappingRule::__construct | ( | $a_rid = 0 | ) |
Constructor.
| int | $a_rid |
Definition at line 31 of file class.ilECSCourseMappingRule.php.
References read().
Here is the call graph for this function:| ilECSCourseMappingRule::delete | ( | ) |
Definition at line 379 of file class.ilECSCourseMappingRule.php.
References $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 189 of file class.ilECSCourseMappingRule.php.
References $GLOBALS, 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 159 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
Here is the caller graph for this function:| ilECSCourseMappingRule::enableFilter | ( | $a_status | ) |
Definition at line 329 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::enableSubdirCreation | ( | $a_stat | ) |
Definition at line 349 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::getAttribute | ( | ) |
Definition at line 314 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 374 of file class.ilECSCourseMappingRule.php.
References $directory.
Referenced by save(), and update().
Here is the caller graph for this function:| ilECSCourseMappingRule::getFilter | ( | ) |
|
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 261 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm(), and ilECSMappingSettingsGUI\cSaveOverview().
Here is the caller graph for this function:| ilECSCourseMappingRule::getMid | ( | ) |
Definition at line 304 of file class.ilECSCourseMappingRule.php.
References $mid.
Referenced by save().
Here is the caller graph for this function:| ilECSCourseMappingRule::getRefId | ( | ) |
Definition at line 324 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 66 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, and DB_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 92 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cDeleteRulesOfNode().
Here is the caller graph for this function:| ilECSCourseMappingRule::getServerId | ( | ) |
Definition at line 294 of file class.ilECSCourseMappingRule.php.
References $sid.
Referenced by save().
Here is the caller graph for this function:| ilECSCourseMappingRule::getSubDirectoryType | ( | ) |
Definition at line 364 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 109 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, and $res.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm().
Here is the caller graph for this function:| ilECSCourseMappingRule::isFilterEnabled | ( | ) |
Definition at line 334 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 126 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
Here is the caller graph for this function:| ilECSCourseMappingRule::isSubdirCreationEnabled | ( | ) |
Definition at line 354 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 42 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, and DB_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 239 of file class.ilECSCourseMappingRule.php.
References $GLOBALS, getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), getFilter(), and isFilterEnabled().
Here is the call graph for this function:
|
protected |
Read db entries.
Definition at line 441 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, enableFilter(), enableSubdirCreation(), getRuleId(), 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 394 of file class.ilECSCourseMappingRule.php.
References $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 309 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setDirectory | ( | $a_dir | ) |
Definition at line 369 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setFilter | ( | $a_filter | ) |
Definition at line 339 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setMid | ( | $a_mid | ) |
Definition at line 299 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setRefId | ( | $a_ref_id | ) |
Definition at line 319 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setRuleId | ( | $a_rule_id | ) |
Definition at line 279 of file class.ilECSCourseMappingRule.php.
Referenced by save().
Here is the caller graph for this function:| ilECSCourseMappingRule::setServerId | ( | $a_server_id | ) |
Definition at line 289 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::setSubDirectoryType | ( | $a_type | ) |
Definition at line 359 of file class.ilECSCourseMappingRule.php.
Referenced by read().
Here is the caller graph for this function:| ilECSCourseMappingRule::update | ( | ) |
Update mapping rule @global type $ilDB.
Definition at line 421 of file class.ilECSCourseMappingRule.php.
References $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 22 of file class.ilECSCourseMappingRule.php.
Referenced by isSubdirCreationEnabled().
|
private |
Definition at line 24 of file class.ilECSCourseMappingRule.php.
Referenced by getDirectory().
|
private |
Definition at line 21 of file class.ilECSCourseMappingRule.php.
Referenced by getFilter().
|
private |
Definition at line 20 of file class.ilECSCourseMappingRule.php.
Referenced by isFilterEnabled().
|
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().
|
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 23 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().