|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 25 of file class.ilDidacticTemplateFilterPattern.php.
| ilDidacticTemplateFilterPattern::__construct | ( | int | $a_pattern_id = 0 | ) |
Reimplemented in ilDidacticTemplateExcludeFilterPattern, and ilDidacticTemplateIncludeFilterPattern.
Definition at line 44 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 176 of file class.ilDidacticTemplateFilterPattern.php.
References setParentId(), and setPatternId().
Here is the call graph for this function:| ilDidacticTemplateFilterPattern::delete | ( | ) |
Definition at line 169 of file class.ilDidacticTemplateFilterPattern.php.
References getPatternId().
Here is the call graph for this function:| ilDidacticTemplateFilterPattern::getParentId | ( | ) |
Definition at line 72 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 82 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 112 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern.
Referenced by save(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), update(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPatternId | ( | ) |
Definition at line 62 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 102 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_sub_type.
Referenced by save(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), update(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPatternType | ( | ) |
Definition at line 92 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 186 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 152 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 67 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setParentType | ( | string | $a_type | ) |
Definition at line 77 of file class.ilDidacticTemplateFilterPattern.php.
| ilDidacticTemplateFilterPattern::setPattern | ( | string | $a_pattern | ) |
Definition at line 107 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternId | ( | int | $a_id | ) |
Definition at line 57 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 97 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternType | ( | int | $a_type | ) |
Definition at line 87 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 |
Reimplemented in ilDidacticTemplateExcludeFilterPattern, and ilDidacticTemplateIncludeFilterPattern.
| ilDidacticTemplateFilterPattern::update | ( | ) |
Update pattern definition.
Definition at line 134 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 |
Reimplemented in ilDidacticTemplateExcludeFilterPattern, and ilDidacticTemplateIncludeFilterPattern.
|
protected |
Definition at line 41 of file class.ilDidacticTemplateFilterPattern.php.
|
protected |
Definition at line 42 of file class.ilDidacticTemplateFilterPattern.php.
|
private |
Definition at line 34 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getParentId().
|
private |
Definition at line 35 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getParentType().
|
private |
Definition at line 37 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPattern().
|
private |
Definition at line 32 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternId().
|
private |
Definition at line 39 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternSubType().
|
private |
Definition at line 38 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternType().
| const ilDidacticTemplateFilterPattern::PATTERN_EXCLUDE = 2 |
Definition at line 28 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId().
| const ilDidacticTemplateFilterPattern::PATTERN_INCLUDE = 1 |
Definition at line 27 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId().
| const ilDidacticTemplateFilterPattern::PATTERN_SUBTYPE_REGEX = 1 |
Definition at line 30 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateImport\parseBlockRoleAction(), ilDidacticTemplateImport\parseLocalPolicyAction(), ilDidacticTemplatePatternTest\testMatches(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().