PHP Class Ingo_Script_Sieve_Else, horde

Author: Mike Cochrane ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Ingo_Script_Sieve_Base
Mostra file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_actions array A list of Ingo_Script_Sieve_Action objects that go into the else clause.

Public Methods

Method Description
__construct ( mixed $actions = 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 ( )
requires ( ) : array Returns a list of sieve extensions required for this rule and any sub-rules.
setActions ( $actions )

Method Details

__construct() public method

Constructor.
public __construct ( mixed $actions = null )
$actions mixed An Ingo_Script_Sieve_Action object or a list of Ingo_Script_Sieve_Action objects.

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 ( )

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 )

Property Details

$_actions protected_oe property

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