\Ingo_Script_Sieve_Else

The Ingo_Script_Sieve_Else class represents a Sieve Else Statement.

Summary

Methods
Properties
Constants
requires()
__construct()
generate()
setActions()
getActions()
check()
No public properties found
No constants found
No protected methods found
$_actions
N/A
No private methods found
No private properties found
N/A

Properties

$_actions

$_actions : array

A list of Ingo_Script_Sieve_Action objects that go into the else clause.

Type

array

Methods

requires()

requires() : array

Returns a list of sieve extensions required for this rule and any sub-rules.

Returns

array —

A Sieve extension list.

__construct()

__construct(mixed  $actions = null) 

Constructor.

Parameters

mixed $actions

An Ingo_Script_Sieve_Action object or a list of Ingo_Script_Sieve_Action objects.

generate()

generate() : string

Returns a script snippet representing this rule and any sub-rules.

Returns

string —

A Sieve script snippet.

setActions()

setActions(  $actions) 

Parameters

$actions

getActions()

getActions() 

check()

check() : boolean|string

Checks if all sub-rules are valid.

Returns

boolean|string —

True if all rules are valid, an error message otherwise.