1: <?php
2: /**
3: * The Ingo_Script_Sieve_Test_False class represents a test that always
4: * evaluates to false.
5: *
6: * See the enclosed file LICENSE for license information (ASL). If you
7: * did not receive this file, see http://www.horde.org/licenses/apache.
8: *
9: * @author Mike Cochrane <mike@graftonhall.co.nz>
10: * @package Ingo
11: */
12: class Ingo_Script_Sieve_Test_False extends Ingo_Script_Sieve_Test
13: {
14: /**
15: * Returns a script snippet representing this rule and any sub-rules.
16: *
17: * @return string A Sieve script snippet.
18: */
19: public function toCode()
20: {
21: return 'false';
22: }
23:
24: /**
25: * Checks if the rule parameters are valid.
26: *
27: * @return boolean|string True if this rule is valid, an error message
28: * otherwise.
29: */
30: public function check()
31: {
32: return true;
33: }
34:
35: }
36: