|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Represents a filter pattern for didactic template actions. More...
Inheritance diagram for ilDidacticTemplateFilterPattern:
Collaboration diagram for ilDidacticTemplateFilterPattern:Public Member Functions | |
| __construct ($a_pattern_id=0) | |
| Constructor. More... | |
| setPatternId ($a_id) | |
| set pattern id More... | |
| getPatternId () | |
| Get pattern id. More... | |
| setParentId ($a_id) | |
| Set parent id. More... | |
| getParentId () | |
| Get parent id. More... | |
| setParentType ($a_type) | |
| Set parent type. More... | |
| getParentType () | |
| Get parent type. More... | |
| setPatternType ($a_type) | |
| Set pattern type. More... | |
| getPatterType () | |
| Get pattern type. More... | |
| setPatternSubType ($a_subtype) | |
| Set pattern sub type. More... | |
| getPatternSubType () | |
| Get pattern sub type. More... | |
| setPattern ($a_pattern) | |
| Set pattern. More... | |
| getPattern () | |
| Get pattern. More... | |
| valid ($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 @global ilDB $ilDB. More... | |
| delete () | |
| Delete pattern @global ilDB $ilDB. More... | |
| __clone () | |
| Magic clone method. More... | |
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... | |
Private Attributes | |
| $pattern_id = 0 | |
| $parent_id = 0 | |
| $parent_type = '' | |
| $pattern_type = 0 | |
| $pattern_sub_type = 0 | |
Represents a filter pattern for didactic template actions.
Definition at line 11 of file class.ilDidacticTemplateFilterPattern.php.
| ilDidacticTemplateFilterPattern::__construct | ( | $a_pattern_id = 0 | ) |
Constructor.
| int | $a_pattern_id |
Reimplemented in ilDidacticTemplateExcludeFilterPattern, and ilDidacticTemplateIncludeFilterPattern.
Definition at line 32 of file class.ilDidacticTemplateFilterPattern.php.
References getPatternId(), read(), and setPatternId().
Here is the call graph for this function:| ilDidacticTemplateFilterPattern::__clone | ( | ) |
Magic clone method.
Definition at line 225 of file class.ilDidacticTemplateFilterPattern.php.
References setParentId(), and setPatternId().
Here is the call graph for this function:| ilDidacticTemplateFilterPattern::delete | ( | ) |
Delete pattern @global ilDB $ilDB.
Definition at line 212 of file class.ilDidacticTemplateFilterPattern.php.
References $ilDB, $query, and getPatternId().
Here is the call graph for this function:| ilDidacticTemplateFilterPattern::getParentId | ( | ) |
Get parent id.
Definition at line 71 of file class.ilDidacticTemplateFilterPattern.php.
References $parent_id.
Referenced by save(), and update().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getParentType | ( | ) |
Get parent type.
Definition at line 89 of file class.ilDidacticTemplateFilterPattern.php.
References $parent_type.
Referenced by save(), and update().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPattern | ( | ) |
Get pattern.
Definition at line 143 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by save(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), update(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::getPatternId | ( | ) |
Get pattern id.
Definition at line 53 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 | ( | ) |
Get pattern sub type.
Definition at line 125 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::getPatterType | ( | ) |
Get pattern type.
Definition at line 107 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 236 of file class.ilDidacticTemplateFilterPattern.php.
References $ilDB, $query, $res, $row, 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 @global ilDB $ilDB.
Definition at line 189 of file class.ilDidacticTemplateFilterPattern.php.
References $ilDB, $query, getParentId(), getParentType(), getPattern(), getPatternId(), getPatternSubType(), getPatterType(), and setPatternId().
Here is the call graph for this function:| ilDidacticTemplateFilterPattern::setParentId | ( | $a_id | ) |
Set parent id.
| int | $a_id |
Definition at line 62 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setParentType | ( | $a_type | ) |
Set parent type.
| string | $a_type |
Definition at line 80 of file class.ilDidacticTemplateFilterPattern.php.
References $a_type.
| ilDidacticTemplateFilterPattern::setPattern | ( | $a_pattern | ) |
Set pattern.
| string | $a_pattern |
Definition at line 134 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternId | ( | $a_id | ) |
set pattern id
| int | $a_id |
Definition at line 44 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone(), __construct(), and save().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternSubType | ( | $a_subtype | ) |
Set pattern sub type.
| int | $a_subtype |
Definition at line 116 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
Here is the caller graph for this function:| ilDidacticTemplateFilterPattern::setPatternType | ( | $a_type | ) |
Set pattern type.
| int | $a_type |
Definition at line 98 of file class.ilDidacticTemplateFilterPattern.php.
References $a_type.
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 168 of file class.ilDidacticTemplateFilterPattern.php.
References $ilDB, $query, $res, getParentId(), getParentType(), getPattern(), getPatternId(), getPatternSubType(), and getPatterType().
Here is the call graph for this function:
|
abstract |
Check if pattern matches.
| mixed |
Reimplemented in ilDidacticTemplateExcludeFilterPattern, and ilDidacticTemplateIncludeFilterPattern.
|
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 18 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternId().
|
private |
Definition at line 24 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatternSubType().
|
private |
Definition at line 23 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by getPatterType().
| 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\parseActions(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().