ILIAS
release_4-3 Revision
|
Represents a filter pattern for didactic template actions. More...
Public Member Functions | |
__construct ($a_pattern_id=0) | |
Constructor. | |
setPatternId ($a_id) | |
set pattern id | |
getPatternId () | |
Get pattern id. | |
setParentId ($a_id) | |
Set parent id. | |
getParentId () | |
Get parent id. | |
setParentType ($a_type) | |
Set parent type. | |
getParentType () | |
Get parent type. | |
setPatternType ($a_type) | |
Set pattern type. | |
getPatterType () | |
Get pattern type. | |
setPatternSubType ($a_subtype) | |
Set pattern sub type. | |
getPatternSubType () | |
Get pattern sub type. | |
setPattern ($a_pattern) | |
Set pattern. | |
getPattern () | |
Get pattern. | |
valid ($a_source) | |
Check if pattern matches. | |
toXml (ilXmlWriter $writer) | |
Get xml representation of pattern. | |
update () | |
Update pattern definition. | |
save () | |
Create new pattern ilDB $ilDB. | |
delete () | |
Delete pattern ilDB $ilDB. | |
__clone () | |
Magic clone method. |
Data Fields | |
const | PATTERN_INCLUDE = 1 |
const | PATTERN_EXCLUDE = 2 |
const | PATTERN_SUBTYPE_REGEX = 1 |
Protected Member Functions | |
read () | |
Read pattern definition from db. |
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 ilDidacticTemplateIncludeFilterPattern, and ilDidacticTemplateExcludeFilterPattern.
Definition at line 32 of file class.ilDidacticTemplateFilterPattern.php.
References getPatternId(), read(), and setPatternId().
ilDidacticTemplateFilterPattern::__clone | ( | ) |
Magic clone method.
Definition at line 226 of file class.ilDidacticTemplateFilterPattern.php.
References setParentId(), and setPatternId().
ilDidacticTemplateFilterPattern::delete | ( | ) |
Delete pattern ilDB $ilDB.
Definition at line 213 of file class.ilDidacticTemplateFilterPattern.php.
References $query, and getPatternId().
ilDidacticTemplateFilterPattern::getParentId | ( | ) |
Get parent id.
Definition at line 72 of file class.ilDidacticTemplateFilterPattern.php.
References $parent_id.
Referenced by save(), and update().
ilDidacticTemplateFilterPattern::getParentType | ( | ) |
Get parent type.
Definition at line 90 of file class.ilDidacticTemplateFilterPattern.php.
References $parent_type.
Referenced by save(), and update().
ilDidacticTemplateFilterPattern::getPattern | ( | ) |
Get pattern.
Definition at line 144 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by save(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), update(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().
ilDidacticTemplateFilterPattern::getPatternId | ( | ) |
Get pattern id.
Definition at line 54 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_id.
Referenced by __construct(), delete(), read(), save(), and update().
ilDidacticTemplateFilterPattern::getPatternSubType | ( | ) |
Get pattern sub type.
Definition at line 126 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_sub_type.
Referenced by save(), ilDidacticTemplateExcludeFilterPattern\toXml(), ilDidacticTemplateIncludeFilterPattern\toXml(), update(), ilDidacticTemplateExcludeFilterPattern\valid(), and ilDidacticTemplateIncludeFilterPattern\valid().
ilDidacticTemplateFilterPattern::getPatterType | ( | ) |
Get pattern type.
Definition at line 108 of file class.ilDidacticTemplateFilterPattern.php.
References $pattern_type.
Referenced by save(), and update().
|
protected |
Read pattern definition from db.
Definition at line 237 of file class.ilDidacticTemplateFilterPattern.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, getPatternId(), setPattern(), setPatternSubType(), and setPatternType().
Referenced by __construct().
ilDidacticTemplateFilterPattern::save | ( | ) |
Create new pattern ilDB $ilDB.
Definition at line 190 of file class.ilDidacticTemplateFilterPattern.php.
References $query, getParentId(), getParentType(), getPattern(), getPatternId(), getPatternSubType(), getPatterType(), and setPatternId().
ilDidacticTemplateFilterPattern::setParentId | ( | $a_id | ) |
Set parent id.
int | $a_id |
Definition at line 63 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone().
ilDidacticTemplateFilterPattern::setParentType | ( | $a_type | ) |
Set parent type.
string | $a_type |
Definition at line 81 of file class.ilDidacticTemplateFilterPattern.php.
ilDidacticTemplateFilterPattern::setPattern | ( | $a_pattern | ) |
Set pattern.
string | $a_pattern |
Definition at line 135 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
ilDidacticTemplateFilterPattern::setPatternId | ( | $a_id | ) |
set pattern id
int | $a_id |
Definition at line 45 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by __clone(), __construct(), and save().
ilDidacticTemplateFilterPattern::setPatternSubType | ( | $a_subtype | ) |
Set pattern sub type.
int | $a_subtype |
Definition at line 117 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by read().
ilDidacticTemplateFilterPattern::setPatternType | ( | $a_type | ) |
Set pattern type.
int | $a_type |
Definition at line 99 of file class.ilDidacticTemplateFilterPattern.php.
Referenced by ilDidacticTemplateExcludeFilterPattern\__construct(), ilDidacticTemplateIncludeFilterPattern\__construct(), and read().
|
abstract |
Get xml representation of pattern.
ilXmlWriter | $writer |
Reimplemented in ilDidacticTemplateIncludeFilterPattern, and ilDidacticTemplateExcludeFilterPattern.
ilDidacticTemplateFilterPattern::update | ( | ) |
Update pattern definition.
Definition at line 169 of file class.ilDidacticTemplateFilterPattern.php.
References $query, $res, getParentId(), getParentType(), getPattern(), getPatternId(), getPatternSubType(), and getPatterType().
|
abstract |
Check if pattern matches.
mixed |
Reimplemented in ilDidacticTemplateIncludeFilterPattern, and ilDidacticTemplateExcludeFilterPattern.
|
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(), and ilDidacticTemplateIncludeFilterPattern\toXml().