| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
Represents a filter pattern for didactic template actions. More...
 Inheritance diagram for ilDidacticTemplateFilterPattern:
 Collaboration diagram for ilDidacticTemplateFilterPattern:Public Member Functions | |
| __construct (int $a_pattern_id=0) | |
| setPatternId (int $a_id) | |
| getPatternId () | |
| setParentId (int $a_id) | |
| getParentId () | |
| setParentType (string $a_type) | |
| getParentType () | |
| setPatternType (int $a_type) | |
| getPatternType () | |
| setPatternSubType (int $a_subtype) | |
| getPatternSubType () | |
| setPattern (string $a_pattern) | |
| getPattern () | |
| valid (string $a_source) | |
| Check if pattern matches.  More... | |
| toXml (ilXmlWriter $writer) | |
| Get xml representation of pattern.  More... | |
| update () | |
| Update pattern definition.  More... | |
| save () | |
| Create new pattern Returns new pattern id.  More... | |
| delete () | |
| __clone () | |
Data Fields | |
| const | PATTERN_INCLUDE = 1 | 
| const | PATTERN_EXCLUDE = 2 | 
| const | PATTERN_SUBTYPE_REGEX = 1 | 
Protected Member Functions | |
| read () | |
| Read pattern definition from db.  More... | |
Protected Attributes | |
| ilDBInterface | $db | 
| ilLogger | $logger | 
Private Attributes | |
| int | $pattern_id = 0 | 
| int | $parent_id = 0 | 
| string | $parent_type = '' | 
| string | $pattern = '' | 
| int | $pattern_type = 0 | 
| int | $pattern_sub_type = 0 | 
Represents a filter pattern for didactic template actions.
Definition at line 11 of file class.ilDidacticTemplateFilterPattern.php.
| ilDidacticTemplateFilterPattern::__construct | ( | int | $a_pattern_id = 0 | ) | 
Definition at line 30 of file class.ilDidacticTemplateFilterPattern.php.
References $DIC, getPatternId(), ILIAS\Repository\logger(), read(), and setPatternId().
 Here is the call graph for this function:| ilDidacticTemplateFilterPattern::__clone | ( | ) | 
Definition at line 162 of file class.ilDidacticTemplateFilterPattern.php.
References setParentId(), and setPatternId().
 Here is the call graph for this function:| ilDidacticTemplateFilterPattern::delete | ( | ) | 
Definition at line 155 of file class.ilDidacticTemplateFilterPattern.php.
References getPatternId().
 Here is the call graph for this function:| ilDidacticTemplateFilterPattern::getParentId | ( | ) | 
Definition at line 58 of file class.ilDidacticTemplateFilterPattern.php.
References $parent_id.
Referenced by save(), and update().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getParentType | ( | ) | 
Definition at line 68 of file class.ilDidacticTemplateFilterPattern.php.
References $parent_type.
Referenced by save(), and update().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPattern | ( | ) | 
Definition at line 98 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern, toXml(), and valid().
Referenced by save(), ilDidacticTemplateIncludeFilterPattern\toXml(), ilDidacticTemplateExcludeFilterPattern\toXml(), update(), ilDidacticTemplateIncludeFilterPattern\valid(), and ilDidacticTemplateExcludeFilterPattern\valid().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPatternId | ( | ) | 
Definition at line 48 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_id.
Referenced by __construct(), delete(), read(), save(), and update().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPatternSubType | ( | ) | 
Definition at line 88 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_sub_type.
Referenced by save(), ilDidacticTemplateIncludeFilterPattern\toXml(), ilDidacticTemplateExcludeFilterPattern\toXml(), update(), ilDidacticTemplateIncludeFilterPattern\valid(), and ilDidacticTemplateExcludeFilterPattern\valid().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPatternType | ( | ) | 
Definition at line 78 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_type.
Referenced by save(), and update().
 Here is the caller graph for this function:
      
  | 
  protected | 
Read pattern definition from db.
Definition at line 172 of file class.ilDidacticTemplateFilterPattern.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getPatternId(), setPattern(), setPatternSubType(), and setPatternType().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::save | ( | ) | 
Create new pattern Returns new pattern id.
Definition at line 138 of file class.ilDidacticTemplateFilterPattern.php.
References getParentId(), getParentType(), getPattern(), getPatternId(), getPatternSubType(), getPatternType(), and setPatternId().
 Here is the call graph for this function:| ilDidacticTemplateFilterPattern::setParentId | ( | int | $a_id | ) | 
Definition at line 53 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setParentType | ( | string | $a_type | ) | 
Definition at line 63 of file class.ilDidacticTemplateFilterPattern.php.
| ilDidacticTemplateFilterPattern::setPattern | ( | string | $a_pattern | ) | 
Definition at line 93 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternId | ( | int | $a_id | ) | 
Definition at line 43 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone(), __construct(), and save().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternSubType | ( | int | $a_subtype | ) | 
Definition at line 83 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternType | ( | int | $a_type | ) | 
Definition at line 73 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateExcludeFilterPattern\__construct(), ilDidacticTemplateIncludeFilterPattern\__construct(), and read().
 Here is the caller graph for this function:
      
  | 
  abstract | 
Get xml representation of pattern.
| ilXmlWriter | $writer | 
Referenced by getPattern().
 Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::update | ( | ) | 
Update pattern definition.
Definition at line 120 of file class.ilDidacticTemplateFilterPattern.php.
References $res, getParentId(), getParentType(), getPattern(), getPatternId(), getPatternSubType(), and getPatternType().
 Here is the call graph for this function:
      
  | 
  abstract | 
Check if pattern matches.
| mixed | 
Referenced by getPattern().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 27 of file class.ilDidacticTemplateFilterPattern.php.
      
  | 
  protected | 
Definition at line 28 of file class.ilDidacticTemplateFilterPattern.php.
      
  | 
  private | 
Definition at line 20 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getParentId().
      
  | 
  private | 
Definition at line 21 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getParentType().
      
  | 
  private | 
Definition at line 23 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPattern().
      
  | 
  private | 
Definition at line 18 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternId().
      
  | 
  private | 
Definition at line 25 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternSubType().
      
  | 
  private | 
Definition at line 24 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternType().
| const ilDidacticTemplateFilterPattern::PATTERN_EXCLUDE = 2 | 
Definition at line 14 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId().
| const ilDidacticTemplateFilterPattern::PATTERN_INCLUDE = 1 | 
Definition at line 13 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId().
| const ilDidacticTemplateFilterPattern::PATTERN_SUBTYPE_REGEX = 1 | 
Definition at line 16 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateImport\parseBlockRoleAction(), ilDidacticTemplateImport\parseLocalPolicyAction(), ilDidacticTemplatePatternTest\testMatches(), ilDidacticTemplateIncludeFilterPattern\toXml(), and ilDidacticTemplateExcludeFilterPattern\toXml().