| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Collaboration diagram for ilECSCourseMappingRule:Public Member Functions | |
| __construct (int $a_rid=0) | |
| doMapping ($course, int $parent_ref) | |
| Do mapping.  More... | |
| matches ($course) | |
| Check if rule matches.  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, $a_sid, $a_mid, $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 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().
 Here is the call graph for this function:
      
  | 
  protected | 
Create attribute category.
Definition at line 253 of file class.ilECSCourseMappingRule.php.
References ILIAS\Repository\lng(), and SYSTEM_USER_ID.
Referenced by doMapping().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSCourseMappingRule::delete | ( | ) | 
Definition at line 423 of file class.ilECSCourseMappingRule.php.
References getRuleId().
 Here is the call graph for this function:| ilECSCourseMappingRule::doMapping | ( | $course, | |
| int | $parent_ref | ||
| ) | 
Do mapping.
Definition at line 223 of file class.ilECSCourseMappingRule.php.
References createCategory(), getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), and isSubdirCreationEnabled().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 181 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
 Here is the caller graph for this function:| ilECSCourseMappingRule::enableFilter | ( | bool | $a_status | ) | 
Definition at line 373 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::enableSubdirCreation | ( | bool | $a_stat | ) | 
Definition at line 398 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::getAttribute | ( | ) | 
Definition at line 358 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 418 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 388 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 393 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.
Definition at line 304 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm(), and ilECSMappingSettingsGUI\cSaveOverview().
 Here is the caller graph for this function:| ilECSCourseMappingRule::getMid | ( | ) | 
Definition at line 348 of file class.ilECSCourseMappingRule.php.
References $mid.
Referenced by save().
 Here is the caller graph for this function:| ilECSCourseMappingRule::getRefId | ( | ) | 
Definition at line 368 of file class.ilECSCourseMappingRule.php.
References $ref_id.
Referenced by save(), and update().
 Here is the caller graph for this function:| ilECSCourseMappingRule::getRuleId | ( | ) | 
      
  | 
  static | 
Definition at line 83 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $ref_id, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilECSCourseCreationHandler\doAttributeMapping(), and ilECSNodeMappingLocalExplorer\initMappings().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Get all rule of ref_id.
Definition at line 115 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cDeleteRulesOfNode().
 Here is the caller graph for this function:| ilECSCourseMappingRule::getServerId | ( | ) | 
Definition at line 338 of file class.ilECSCourseMappingRule.php.
References $sid.
Referenced by save().
 Here is the caller graph for this function:| ilECSCourseMappingRule::getSubDirectoryType | ( | ) | 
Definition at line 408 of file class.ilECSCourseMappingRule.php.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 133 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, and $res.
Referenced by ilECSMappingSettingsGUI\cInitMappingForm().
 Here is the caller graph for this function:| ilECSCourseMappingRule::isFilterEnabled | ( | ) | 
Definition at line 378 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.
Definition at line 151 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\doAttributeMapping().
 Here is the caller graph for this function:| ilECSCourseMappingRule::isSubdirCreationEnabled | ( | ) | 
Definition at line 403 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.
Definition at line 60 of file class.ilECSCourseMappingRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\cInitOverview().
 Here is the caller graph for this function:| ilECSCourseMappingRule::matches | ( | $course | ) | 
Check if rule matches.
Definition at line 278 of file class.ilECSCourseMappingRule.php.
References getAttribute(), ilECSMappingUtils\getCourseValueByMappingAttribute(), getFilterElements(), isFilterEnabled(), and ILIAS\Repository\logger().
 Here is the call graph for this function:
      
  | 
  protected | 
Parse filter.
Definition at line 502 of file class.ilECSCourseMappingRule.php.
References 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 476 of file class.ilECSCourseMappingRule.php.
References $res, enableFilter(), enableSubdirCreation(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), parseFilter(), setAttribute(), setDirectory(), setFilter(), setMid(), setRefId(), and setServerId().
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.
Definition at line 434 of file class.ilECSCourseMappingRule.php.
References getAttribute(), getDirectory(), getFilter(), getMid(), getRefId(), getRuleId(), getServerId(), getSubDirectoryType(), isFilterEnabled(), isSubdirCreationEnabled(), and setRuleId().
 Here is the call graph for this function:| ilECSCourseMappingRule::setAttribute | ( | string | $a_att | ) | 
Definition at line 353 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::setDirectory | ( | string | $a_dir | ) | 
Definition at line 413 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::setFilter | ( | string | $a_filter | ) | 
Definition at line 383 of file class.ilECSCourseMappingRule.php.
References ILIAS\Repository\filter().
Referenced by read().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilECSCourseMappingRule::setMid | ( | int | $a_mid | ) | 
Definition at line 343 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::setRefId | ( | int | $a_ref_id | ) | 
Definition at line 363 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::setRuleId | ( | int | $a_rule_id | ) | 
Definition at line 323 of file class.ilECSCourseMappingRule.php.
Referenced by save().
 Here is the caller graph for this function:| ilECSCourseMappingRule::setServerId | ( | int | $a_server_id | ) | 
Definition at line 333 of file class.ilECSCourseMappingRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilECSCourseMappingRule::update | ( | ) | 
Update mapping rule.
Definition at line 458 of file class.ilECSCourseMappingRule.php.
References getAttribute(), getDirectory(), getFilter(), getRefId(), getRuleId(), getSubDirectoryType(), isFilterEnabled(), and isSubdirCreationEnabled().
 Here is the call graph for this function:
      
  | 
  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.