PHP Класс Ingo_Script_Sieve, horde

Автор: Mike Cochrane ([email protected])
Автор: Jan Schneider ([email protected])
Наследование: extends Ingo_Script_Base
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_actions array The list of actions allowed (implemented) for this driver.
$_categories array The categories of filtering allowed.
$_endBlocks array The blocks that have to appear at the end of the code.
$_features array A list of driver features.
$_tests array The list of tests allowed (implemented) for this driver.
$_types array The types of tests allowed (implemented) for this driver.

Открытые методы

Метод Описание
check ( ) : boolean | string Checks if all rules are valid.
escapeString ( string $string, boolean $regexmode = false ) : string Escape a string according to Sieve RFC 3028 [2.4.2].
generate ( ) : array Generates the scripts to do the filtering specified in the rules.

Защищенные методы

Метод Описание
_addBlacklistBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the blacklist rule.
_addForwardBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the forward rule.
_addSpamBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the spam rule.
_addVacationBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the vacation rule.
_addWhitelistBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the whitelist rule.
_generate ( ) Generates the Sieve script to do the filtering specified in the rules.

Описание методов

_addBlacklistBlocks() защищенный Метод

Adds all blocks necessary for the blacklist rule.
protected _addBlacklistBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addForwardBlocks() защищенный Метод

Adds all blocks necessary for the forward rule.
protected _addForwardBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addSpamBlocks() защищенный Метод

Adds all blocks necessary for the spam rule.
protected _addSpamBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addVacationBlocks() защищенный Метод

Adds all blocks necessary for the vacation rule.
protected _addVacationBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addWhitelistBlocks() защищенный Метод

Adds all blocks necessary for the whitelist rule.
protected _addWhitelistBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_generate() защищенный Метод

Generates the Sieve script to do the filtering specified in the rules.
protected _generate ( )

check() публичный Метод

Checks if all rules are valid.
public check ( ) : boolean | string
Результат boolean | string True if all rules are valid, an error message otherwise.

escapeString() публичный статический Метод

Escape a string according to Sieve RFC 3028 [2.4.2].
public static escapeString ( string $string, boolean $regexmode = false ) : string
$string string The string to escape.
$regexmode boolean Is the escaped string a regex value? Defaults to no.
Результат string The escaped string.

generate() публичный Метод

Generates the scripts to do the filtering specified in the rules.
public generate ( ) : array
Результат array The scripts.

Описание свойств

$_actions защищенное свойство

The list of actions allowed (implemented) for this driver.
protected array $_actions
Результат array

$_categories защищенное свойство

The categories of filtering allowed.
protected array $_categories
Результат array

$_endBlocks защищенное свойство

The blocks that have to appear at the end of the code.
protected array $_endBlocks
Результат array

$_features защищенное свойство

A list of driver features.
protected array $_features
Результат array

$_tests защищенное свойство

The list of tests allowed (implemented) for this driver.
protected array $_tests
Результат array

$_types защищенное свойство

The types of tests allowed (implemented) for this driver.
protected array $_types
Результат array