ILIAS
Release_5_0_x_branch Revision 61816
|
Description of class. More...
Public Member Functions | |
__construct ($a_rid=0) | |
Constructor. | |
doMapping ($course, $parent_ref) | |
Do mapping. | |
matches ($course) | |
Check if rule matches. | |
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 type $ilDB. | |
update () | |
Update mapping rule type $ilDB. |
Static Public Member Functions | |
static | lookupLastExistingAttribute ($a_sid, $a_mid, $a_ref_id) |
Lookup existing attributes. | |
static | getRuleRefIds ($a_sid, $a_mid) |
static | getRulesOfRefId ($a_sid, $a_mid, $a_ref_id) |
Get all rule of ref_id type $ilDB. | |
static | hasRules ($a_sid, $a_mid, $a_ref_id) |
static | isMatching ($course, $a_sid, $a_mid, $a_ref_id) |
Check if rule matches. | |
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 type $ilDB. |
Data Fields | |
const | SUBDIR_ATTRIBUTE_NAME = 1 |
const | SUBDIR_VALUE = 2 |
Protected Member Functions | |
read () | |
Read db entries. |
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().
ilECSCourseMappingRule::delete | ( | ) |
Definition at line 379 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, and getRuleId().
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().
|
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().
ilECSCourseMappingRule::enableFilter | ( | $a_status | ) |
Definition at line 329 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::enableSubdirCreation | ( | $a_stat | ) |
Definition at line 349 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::getAttribute | ( | ) |
Definition at line 314 of file class.ilECSCourseMappingRule.php.
References $attribute.
Referenced by doMapping(), matches(), save(), and update().
ilECSCourseMappingRule::getDirectory | ( | ) |
Definition at line 374 of file class.ilECSCourseMappingRule.php.
References $directory.
Referenced by save(), and update().
ilECSCourseMappingRule::getFilter | ( | ) |
|
static |
Get rule instance by attribute 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().
ilECSCourseMappingRule::getMid | ( | ) |
Definition at line 304 of file class.ilECSCourseMappingRule.php.
References $mid.
Referenced by save().
ilECSCourseMappingRule::getRefId | ( | ) |
Definition at line 324 of file class.ilECSCourseMappingRule.php.
References $ref_id.
Referenced by save(), and update().
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().
|
static |
Get all rule of ref_id 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().
ilECSCourseMappingRule::getServerId | ( | ) |
Definition at line 294 of file class.ilECSCourseMappingRule.php.
References $sid.
Referenced by save().
ilECSCourseMappingRule::getSubDirectoryType | ( | ) |
Definition at line 364 of file class.ilECSCourseMappingRule.php.
References SUBDIR_VALUE.
Referenced by save(), and update().
|
static |
Definition at line 109 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, and $res.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm().
ilECSCourseMappingRule::isFilterEnabled | ( | ) |
Definition at line 334 of file class.ilECSCourseMappingRule.php.
References $is_filter.
Referenced by matches(), save(), and update().
|
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().
ilECSCourseMappingRule::isSubdirCreationEnabled | ( | ) |
Definition at line 354 of file class.ilECSCourseMappingRule.php.
References $create_subdir.
Referenced by doMapping(), save(), and update().
|
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().
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().
|
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().
ilECSCourseMappingRule::save | ( | ) |
Save a new rule 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().
ilECSCourseMappingRule::setAttribute | ( | $a_att | ) |
Definition at line 309 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setDirectory | ( | $a_dir | ) |
Definition at line 369 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setFilter | ( | $a_filter | ) |
Definition at line 339 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setMid | ( | $a_mid | ) |
Definition at line 299 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setRefId | ( | $a_ref_id | ) |
Definition at line 319 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setRuleId | ( | $a_rule_id | ) |
Definition at line 279 of file class.ilECSCourseMappingRule.php.
Referenced by save().
ilECSCourseMappingRule::setServerId | ( | $a_server_id | ) |
Definition at line 289 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setSubDirectoryType | ( | $a_type | ) |
Definition at line 359 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::update | ( | ) |
Update mapping rule type $ilDB.
Definition at line 421 of file class.ilECSCourseMappingRule.php.
References $ilDB, $query, getAttribute(), getDirectory(), getFilter(), getRefId(), getRuleId(), getSubDirectoryType(), isFilterEnabled(), and isSubdirCreationEnabled().
|
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().