Ingo_Script_Sieve_Elsif
extends Ingo_Script_Sieve_Base
in package
The Ingo_Script_Sieve_Elsif class represents a Sieve Elsif Statement.
Tags
Table of Contents
- $_actions : array<string|int, mixed>
- 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.
- __construct() : mixed
- Constructor.
- check() : bool|string
- Checks if all sub-rules are valid.
- generate() : string
- Returns a script snippet representing this rule and any sub-rules.
- getActions() : mixed
- getTest() : mixed
- requires() : array<string|int, mixed>
- Returns a list of sieve extensions required for this rule and any sub-rules.
- setActions() : mixed
- setTest() : mixed
Properties
$_actions
A list of Ingo_Script_Sieve_Action objects that go into the if clause.
protected
array<string|int, mixed>
$_actions
= array()
$_test
The Ingo_Script_Sieve_Test object for the if test.
protected
Ingo_Script_Sieve_Test
$_test
Methods
__construct()
Constructor.
public
__construct([Ingo_Script_Sieve_Test $test = null ]) : mixed
Parameters
- $test : Ingo_Script_Sieve_Test = null
-
A Ingo_Script_Sieve_Test object.
Return values
mixed —check()
Checks if all sub-rules are valid.
public
check() : bool|string
Return values
bool|string —True if all rules are valid, an error message otherwise.
generate()
Returns a script snippet representing this rule and any sub-rules.
public
generate() : string
Return values
string —A Sieve script snippet.
getActions()
public
getActions() : mixed
Return values
mixed —getTest()
public
getTest() : mixed
Return values
mixed —requires()
Returns a list of sieve extensions required for this rule and any sub-rules.
public
requires() : array<string|int, mixed>
Return values
array<string|int, mixed> —A Sieve extension list.
setActions()
public
setActions(mixed $actions) : mixed
Parameters
- $actions : mixed
Return values
mixed —setTest()
public
setTest(mixed $test) : mixed
Parameters
- $test : mixed