PHP Class Ingo_Script_Sieve_Action_Flag, horde

It supports both imap4flags (RFC 5232) and the older, deprecated imapflags (draft-melnikov-sieve-imapflags-03) capabilities.
Author: Michael Slusarz ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Ingo_Script_Sieve_Action
Mostra file Open project: horde/horde

Public Methods

Method Description
__construct ( $vars = [] ) Constructor.
check ( ) : boolean | string Checks if the rule parameters are valid.
requires ( ) : array Returns a list of sieve extensions required for this rule and any sub-rules.

Protected Methods

Method Description
_generate ( string $mode ) : string Returns a script snippet representing this rule and any sub-rules.

Method Details

__construct() public method

Constructor.
public __construct ( $vars = [] )

_generate() protected method

Returns a script snippet representing this rule and any sub-rules.
protected _generate ( string $mode ) : string
$mode string The sieve flag command to use. Either: - addflag - removeflag
return string A Sieve script snippet.

check() public method

Checks if the rule parameters are valid.
public check ( ) : boolean | string
return boolean | string True if this rule is valid, an error message otherwise.

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.