ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (int $a_rid=0) | |
doMapping ($course, int $parent_ref) | |
Do mapping. More... | |
setRuleId (int $a_rule_id) | |
getRuleId () | |
setServerId (int $a_server_id) | |
getServerId () | |
setMid (int $a_mid) | |
getMid () | |
setAttribute (string $a_att) | |
getAttribute () | |
setRefId (int $a_ref_id) | |
getRefId () | |
enableFilter (bool $a_status) | |
isFilterEnabled () | |
setFilter (string $a_filter) | |
getFilter () | |
getFilterElements () | |
enableSubdirCreation (bool $a_stat) | |
isSubdirCreationEnabled () | |
getSubDirectoryType () | |
setDirectory (string $a_dir) | |
getDirectory () | |
delete () | |
save () | |
Save a new rule. More... | |
update () | |
Update mapping rule. More... | |
Static Public Member Functions | |
static | lookupLastExistingAttribute (int $a_sid, int $a_mid, int $a_ref_id) |
Lookup existing attributes. More... | |
static | getRuleRefIds (int $a_sid, int $a_mid) |
static | getRulesOfRefId (int $a_sid, int $a_mid, int $a_ref_id) |
Get all rule of ref_id. More... | |
static | hasRules (int $a_sid, int $a_mid, int $a_ref_id) |
static | isMatching ($course, int $a_sid, int $a_mid, int $a_ref_id) |
Check if rule matches. More... | |
static | doMappings ($course, int $a_sid, int $a_mid, int $a_ref_id) |
static | getInstanceByAttribute ($a_sid, $a_mid, $a_ref_id, $a_att) |
Get rule instance by attribute. 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 Member Functions | |
matches ($course) | |
Check if rule matches. More... | |
Private Attributes | |
ilLogger | $logger |
ilTree | $tree |
ilLanguage | $lng |
ilDBInterface | $db |
int | $rid |
int | $sid |
int | $mid |
string | $attribute |
int | $ref_id |
bool | $is_filter = false |
string | $filter = "" |
array | $filter_elements = [] |
bool | $create_subdir = true |
string | $directory = '' |
Definition at line 23 of file class.ilECSCourseMappingRule.php.
ilECSCourseMappingRule::__construct | ( | int | $a_rid = 0 | ) |
Definition at line 44 of file class.ilECSCourseMappingRule.php.
References $DIC, ILIAS\Repository\lng(), ILIAS\Repository\logger(), and read().
|
protected |
Create attribute category.
Definition at line 253 of file class.ilECSCourseMappingRule.php.
References ILIAS\Repository\lng(), and SYSTEM_USER_ID.
Referenced by doMapping().
ilECSCourseMappingRule::delete | ( | ) |
Definition at line 422 of file class.ilECSCourseMappingRule.php.
References $query, and getRuleId().
ilECSCourseMappingRule::doMapping | ( | $course, | |
int | $parent_ref | ||
) |
Do mapping.
Definition at line 223 of file class.ilECSCourseMappingRule.php.
References createCategory(), getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), ILIAS\Repository\int(), and isSubdirCreationEnabled().
|
static |
Definition at line 181 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
ilECSCourseMappingRule::enableFilter | ( | bool | $a_status | ) |
Definition at line 372 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::enableSubdirCreation | ( | bool | $a_stat | ) |
Definition at line 397 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::getAttribute | ( | ) |
Definition at line 357 of file class.ilECSCourseMappingRule.php.
References $attribute.
Referenced by doMapping(), matches(), save(), and update().
ilECSCourseMappingRule::getDirectory | ( | ) |
Definition at line 417 of file class.ilECSCourseMappingRule.php.
References $directory.
Referenced by save(), and update().
ilECSCourseMappingRule::getFilter | ( | ) |
Definition at line 387 of file class.ilECSCourseMappingRule.php.
References $filter.
Referenced by parseFilter(), save(), and update().
ilECSCourseMappingRule::getFilterElements | ( | ) |
Definition at line 392 of file class.ilECSCourseMappingRule.php.
References $filter_elements.
Referenced by matches().
|
static |
Get rule instance by attribute.
Definition at line 303 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm(), and ilECSMappingSettingsGUI\cSaveOverview().
ilECSCourseMappingRule::getMid | ( | ) |
Definition at line 347 of file class.ilECSCourseMappingRule.php.
References $mid.
Referenced by save().
ilECSCourseMappingRule::getRefId | ( | ) |
Definition at line 367 of file class.ilECSCourseMappingRule.php.
References $ref_id.
Referenced by save(), and update().
ilECSCourseMappingRule::getRuleId | ( | ) |
|
static |
Definition at line 83 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $ref_id, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilECSCourseCreationHandler\doAttributeMapping(), and ilECSNodeMappingLocalExplorer\initMappings().
|
static |
Get all rule of ref_id.
Definition at line 115 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cDeleteRulesOfNode().
ilECSCourseMappingRule::getServerId | ( | ) |
Definition at line 337 of file class.ilECSCourseMappingRule.php.
References $sid.
Referenced by save().
ilECSCourseMappingRule::getSubDirectoryType | ( | ) |
Definition at line 407 of file class.ilECSCourseMappingRule.php.
Referenced by save(), and update().
|
static |
Definition at line 133 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm().
ilECSCourseMappingRule::isFilterEnabled | ( | ) |
Definition at line 377 of file class.ilECSCourseMappingRule.php.
References $is_filter.
Referenced by matches(), save(), and update().
|
static |
Check if rule matches.
Definition at line 151 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
ilECSCourseMappingRule::isSubdirCreationEnabled | ( | ) |
Definition at line 402 of file class.ilECSCourseMappingRule.php.
References $create_subdir.
Referenced by doMapping(), save(), and update().
|
static |
Lookup existing attributes.
Definition at line 60 of file class.ilECSCourseMappingRule.php.
References $attributes, $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitOverview().
|
private |
Check if rule matches.
Definition at line 278 of file class.ilECSCourseMappingRule.php.
References $index, getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), getFilterElements(), isFilterEnabled(), and ILIAS\Repository\logger().
|
protected |
Parse filter.
Definition at line 501 of file class.ilECSCourseMappingRule.php.
References getFilter().
Referenced by read().
|
protected |
Read db entries.
Definition at line 475 of file class.ilECSCourseMappingRule.php.
References $query, $res, enableFilter(), enableSubdirCreation(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), parseFilter(), setAttribute(), setDirectory(), setFilter(), setMid(), setRefId(), and setServerId().
Referenced by __construct().
ilECSCourseMappingRule::save | ( | ) |
Save a new rule.
Definition at line 433 of file class.ilECSCourseMappingRule.php.
References $query, getAttribute(), getDirectory(), getFilter(), getMid(), getRefId(), getRuleId(), getServerId(), getSubDirectoryType(), isFilterEnabled(), isSubdirCreationEnabled(), and setRuleId().
ilECSCourseMappingRule::setAttribute | ( | string | $a_att | ) |
Definition at line 352 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setDirectory | ( | string | $a_dir | ) |
Definition at line 412 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setFilter | ( | string | $a_filter | ) |
Definition at line 382 of file class.ilECSCourseMappingRule.php.
References ILIAS\UI\examples\Symbol\Glyph\Filter\filter().
Referenced by read().
ilECSCourseMappingRule::setMid | ( | int | $a_mid | ) |
Definition at line 342 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setRefId | ( | int | $a_ref_id | ) |
Definition at line 362 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::setRuleId | ( | int | $a_rule_id | ) |
Definition at line 322 of file class.ilECSCourseMappingRule.php.
Referenced by save().
ilECSCourseMappingRule::setServerId | ( | int | $a_server_id | ) |
Definition at line 332 of file class.ilECSCourseMappingRule.php.
Referenced by read().
ilECSCourseMappingRule::update | ( | ) |
Update mapping rule.
Definition at line 457 of file class.ilECSCourseMappingRule.php.
References $query, getAttribute(), getDirectory(), getFilter(), getRefId(), getRuleId(), getSubDirectoryType(), isFilterEnabled(), and isSubdirCreationEnabled().
|
private |
Definition at line 36 of file class.ilECSCourseMappingRule.php.
Referenced by getAttribute().
|
private |
Definition at line 41 of file class.ilECSCourseMappingRule.php.
Referenced by isSubdirCreationEnabled().
|
private |
Definition at line 31 of file class.ilECSCourseMappingRule.php.
|
private |
Definition at line 42 of file class.ilECSCourseMappingRule.php.
Referenced by getDirectory().
|
private |
Definition at line 39 of file class.ilECSCourseMappingRule.php.
Referenced by getFilter().
|
private |
Definition at line 40 of file class.ilECSCourseMappingRule.php.
Referenced by getFilterElements().
|
private |
Definition at line 38 of file class.ilECSCourseMappingRule.php.
Referenced by isFilterEnabled().
|
private |
Definition at line 30 of file class.ilECSCourseMappingRule.php.
|
private |
Definition at line 28 of file class.ilECSCourseMappingRule.php.
|
private |
Definition at line 35 of file class.ilECSCourseMappingRule.php.
Referenced by getMid().
|
private |
Definition at line 37 of file class.ilECSCourseMappingRule.php.
Referenced by getRefId(), and getRuleRefIds().
|
private |
Definition at line 33 of file class.ilECSCourseMappingRule.php.
Referenced by getRuleId().
|
private |
Definition at line 34 of file class.ilECSCourseMappingRule.php.
Referenced by getServerId().
|
private |
Definition at line 29 of file class.ilECSCourseMappingRule.php.
const ilECSCourseMappingRule::SUBDIR_ATTRIBUTE_NAME = 1 |
Definition at line 25 of file class.ilECSCourseMappingRule.php.
const ilECSCourseMappingRule::SUBDIR_VALUE = 2 |
Definition at line 26 of file class.ilECSCourseMappingRule.php.