ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Description of class. More...
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 type $ilDB. More... | |
update () | |
Update mapping rule 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 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 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().
|
protected |
Create attribute category.
Definition at line 263 of file class.ilECSCourseMappingRule.php.
References $GLOBALS.
Referenced by doMapping().
ilECSCourseMappingRule::delete | ( | ) |
Definition at line 447 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, and getRuleId().
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().
|
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().
ilECSCourseMappingRule::enableFilter | ( | $a_status | ) |
Definition at line 392 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::enableSubdirCreation | ( | $a_stat | ) |
Definition at line 417 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::getAttribute | ( | ) |
Definition at line 377 of file class.ilECSCourseMappingRule.php.
References $attribute.
Referenced by doMapping(), matches(), save(), and update().
ilECSCourseMappingRule::getDirectory | ( | ) |
Definition at line 442 of file class.ilECSCourseMappingRule.php.
References $directory.
Referenced by save(), and update().
ilECSCourseMappingRule::getFilter | ( | ) |
Definition at line 407 of file class.ilECSCourseMappingRule.php.
References $filter.
Referenced by parseFilter(), save(), and update().
ilECSCourseMappingRule::getFilterElements | ( | ) |
Definition at line 412 of file class.ilECSCourseMappingRule.php.
References $filter_elements.
Referenced by matches().
|
static |
Get rule instance by attribute 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().
ilECSCourseMappingRule::getMid | ( | ) |
Definition at line 367 of file class.ilECSCourseMappingRule.php.
References $mid.
Referenced by save().
ilECSCourseMappingRule::getRefId | ( | ) |
Definition at line 387 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 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().
|
static |
Get all rule of ref_id 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().
ilECSCourseMappingRule::getServerId | ( | ) |
Definition at line 357 of file class.ilECSCourseMappingRule.php.
References $sid.
Referenced by save().
ilECSCourseMappingRule::getSubDirectoryType | ( | ) |
Definition at line 432 of file class.ilECSCourseMappingRule.php.
Referenced by save(), and update().
|
static |
Definition at line 127 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm().
ilECSCourseMappingRule::isFilterEnabled | ( | ) |
Definition at line 397 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 147 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, $row, $rule, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
ilECSCourseMappingRule::isSubdirCreationEnabled | ( | ) |
Definition at line 422 of file class.ilECSCourseMappingRule.php.
References $create_subdir.
Referenced by doMapping(), save(), and update().
|
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().
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().
|
protected |
Parse filter.
Definition at line 545 of file class.ilECSCourseMappingRule.php.
References $filter, $filter_elements, and getFilter().
Referenced by read().
|
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().
ilECSCourseMappingRule::save | ( | ) |
Save a new rule 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().
ilECSCourseMappingRule::setAttribute | ( | $a_att | ) |
Definition at line 372 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setDirectory | ( | $a_dir | ) |
Definition at line 437 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setFilter | ( | $a_filter | ) |
Definition at line 402 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setMid | ( | $a_mid | ) |
Definition at line 362 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setRefId | ( | $a_ref_id | ) |
Definition at line 382 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setRuleId | ( | $a_rule_id | ) |
Definition at line 342 of file class.ilECSCourseMappingRule.php.
Referenced by save().
ilECSCourseMappingRule::setServerId | ( | $a_server_id | ) |
Definition at line 352 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setSubDirectoryType | ( | $a_type | ) |
Definition at line 427 of file class.ilECSCourseMappingRule.php.
References $a_type.
Referenced by read().
ilECSCourseMappingRule::update | ( | ) |
Update mapping rule type $ilDB.
Definition at line 493 of file class.ilECSCourseMappingRule.php.
References $DIC, $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 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.