\Ingo_Script_Sieve_Test_Allof

The Ingo_Script_Sieve_Test_Allof class represents a Allof test structure.

Equivalent to a logical AND of all the tests it contains.

Summary

Methods
Properties
Constants
check()
requires()
__construct()
generate()
addTest()
getTests()
No public properties found
No constants found
No protected methods found
$_vars
$_tests
N/A
No private methods found
No private properties found
N/A

Properties

$_vars

$_vars : array

Any necessary test parameters.

Type

array

$_tests

$_tests : 

Type

Methods

check()

check() : boolean|string

Checks if all sub-rules are valid.

Returns

boolean|string —

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

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  $test = null) 

Constructor.

Parameters

mixed $test

A Ingo_Script_Sieve_Test object or a list of Ingo_Script_Sieve_Test objects.

generate()

generate() : string

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

Returns

string —

A Sieve script snippet.

addTest()

addTest(  $test) 

Parameters

$test

getTests()

getTests()