PHP Class Ingo_Script_Sieve_Elsif, horde

Author: Mike Cochrane ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Ingo_Script_Sieve_Base
显示文件 Open project: horde/horde

Protected Properties

Property Type Description
$_actions array A list of Ingo_Script_Sieve_Action objects that go into the if clause.
$_test Ingo_Script_Sieve_Test The Ingo_Script_Sieve_Test object for the if test.

Public Methods

Method Description
__construct ( Ingo_Script_Sieve_Test $test = null ) Constructor.
check ( ) : boolean | string Checks if all sub-rules are valid.
generate ( ) : string Returns a script snippet representing this rule and any sub-rules.
getActions ( )
getTest ( )
requires ( ) : array Returns a list of sieve extensions required for this rule and any sub-rules.
setActions ( $actions )
setTest ( $test )

Method Details

__construct() public method

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

check() public method

Checks if all sub-rules are valid.
public check ( ) : boolean | string
return boolean | string True if all rules are valid, an error message otherwise.

generate() public method

Returns a script snippet representing this rule and any sub-rules.
public generate ( ) : string
return string A Sieve script snippet.

getActions() public method

public getActions ( )

getTest() public method

public getTest ( )

requires() public method

Returns a list of sieve extensions required for this rule and any sub-rules.
public requires ( ) : array
return array A Sieve extension list.

setActions() public method

public setActions ( $actions )

setTest() public method

public setTest ( $test )

Property Details

$_actions protected_oe property

A list of Ingo_Script_Sieve_Action objects that go into the if clause.
protected array $_actions
return array

$_test protected_oe property

The Ingo_Script_Sieve_Test object for the if test.
protected Ingo_Script_Sieve_Test $_test
return Ingo_Script_Sieve_Test