Adds a rule hash to the filters list.
void
addRule
(array $rule, [boolean $default = true])
-
array
$rule: A rule hash.
-
boolean
$default: If true merge the rule hash with default rule values.
Redefined in descendants as:
Creates a copy of an existing rule.
The created copy is added to the filters list right after the original rule.
boolean
copyRule
(integer $id)
-
integer
$id: Number of the rule to copy.
Redefined in descendants as:
Deletes a rule from the filters list.
boolean
deleteRule
(integer $id)
-
integer
$id: Number of the rule to delete.
Redefined in descendants as:
Searches for and returns the first rule of a certain action type.
array
findRule
(integer $action)
-
integer
$action: The field type of the searched rule (INGO_STORAGE_ACTION_* constants).
Searches for the first rule of a certain action type and returns its number.
integer
findRuleId
(integer $action)
-
integer
$action: The field type of the searched rule (INGO_STORAGE_ACTION_* constants).
Returns a rule hash with default value used when creating new rules.
array
getDefaultRule
()
Returns the filter list.
array
getFilterlist
()
Returns a single rule hash.
array
getRule
(integer $id)
-
integer
$id: A rule number.
Returns the object rule type.
integer
obType
()
Disables a rule.
void
ruleDisable
(integer $id)
-
integer
$id: Number of the rule to disable.
Redefined in descendants as:
Moves a rule down in the filters list.
void
ruleDown
(integer $id, [integer $steps = 1])
-
integer
$id: Number of the rule to move.
-
integer
$steps: Number of positions to move the rule down.
Redefined in descendants as:
Enables a rule.
void
ruleEnable
(integer $id)
-
integer
$id: Number of the rule to enable.
Redefined in descendants as:
Moves a rule up in the filters list.
void
ruleUp
(integer $id, [integer $steps = 1])
-
integer
$id: Number of the rule to move.
-
integer
$steps: Number of positions to move the rule up.
Redefined in descendants as:
Propagates the filter list with data.
void
setFilterlist
(array $data)
-
array
$data: A list of rule hashes.
Updates an existing rule with a rule hash.
void
updateRule
(array $rule, integer $id)
-
array
$rule: A rule hash
-
integer
$id: A rule number
Redefined in descendants as: