Class Ingo_Script_Sieve_Action_Flag
The Ingo_Script_Sieve_Action_Flag class is the base class for flag actions.
See the enclosed file LICENSE for license information (ASL). If you
did not receive this file, see http://www.horde.org/licenses/apache.
-
Ingo_Script_Sieve_Action
-
Ingo_Script_Sieve_Action_Flag
Methods summary
public
|
#
__construct( mixed $vars = array() )
Constructor.
Params
array $vars Any required parameters.
|
public
string
|
#
_toCode( string $mode )
Returns a script snippet representing this rule and any sub-rules.
Returns a script snippet representing this rule and any sub-rules.
Parameters
- $mode
- <p>The sieve flag command to use. Either 'removeflag'
or 'addflag'.</p>
Returns
string A Sieve script snippet.
|
public
boolean|string
|
#
check( )
Checks if the rule parameters are valid.
Checks if the rule parameters are valid.
Returns
boolean|string True if this rule is valid, an error message
otherwise.
Overrides
|
public
array
|
#
requires( )
Returns a list of sieve extensions required for this rule and any
sub-rules.
Returns a list of sieve extensions required for this rule and any
sub-rules.
Returns
array A Sieve extension list.
Overrides
|