PHP Класс Ingo_Script_Sieve_If, horde

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

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

Свойство Тип Описание
$_actions array A list of Ingo_Script_Sieve_Action objects that go into the if clause.
$_else Ingo_Script_Sieve_Else A Ingo_Script_Sieve_Else object that creates an optional else clause.
$_elsifs array A list of Ingo_Script_Sieve_Elseif objects that create optional elsif clauses.
$_test Ingo_Script_Sieve_Test The Ingo_Script_Sieve_Test object for the if test.

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

Метод Описание
__construct ( Ingo_Script_Sieve_Test $test = null ) Constructor.
addElsif ( $elsif )
check ( ) : boolean | string Checks if all sub-rules are valid.
generate ( ) : string Returns a script snippet representing this rule and any sub-rules.
getActions ( )
getElse ( )
getElsifs ( )
getTest ( )
requires ( ) : array Returns a list of sieve extensions required for this rule and any sub-rules.
setActions ( $actions )
setElse ( $else )
setElsifs ( $elsifs )
setTest ( $test )

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

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

Constructor.
public __construct ( Ingo_Script_Sieve_Test $test = null )
$test Ingo_Script_Sieve_Test A Ingo_Script_Sieve_Test object.

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

public addElsif ( $elsif )

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

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

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

Returns a script snippet representing this rule and any sub-rules.
public generate ( ) : string
Результат string A Sieve script snippet.

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

public getActions ( )

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

public getElse ( )

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

public getElsifs ( )

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

public getTest ( )

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

Returns a list of sieve extensions required for this rule and any sub-rules.
public requires ( ) : array
Результат array A Sieve extension list.

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

public setActions ( $actions )

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

public setElse ( $else )

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

public setElsifs ( $elsifs )

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

public setTest ( $test )

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

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

A list of Ingo_Script_Sieve_Action objects that go into the if clause.
protected array $_actions
Результат array

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

A Ingo_Script_Sieve_Else object that creates an optional else clause.
protected Ingo_Script_Sieve_Else $_else
Результат Ingo_Script_Sieve_Else

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

A list of Ingo_Script_Sieve_Elseif objects that create optional elsif clauses.
protected array $_elsifs
Результат array

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

The Ingo_Script_Sieve_Test object for the if test.
protected Ingo_Script_Sieve_Test $_test
Результат Ingo_Script_Sieve_Test