1 | <?php |
||
25 | abstract class AbstractResourceValidator extends ZendAbstractValidator implements ZendValidatorInterface |
||
26 | { |
||
27 | /** |
||
28 | * Invalid syntax |
||
29 | * |
||
30 | * @const INVALID |
||
31 | */ |
||
32 | const INVALID_VALUE = 'invalidValue'; |
||
33 | |||
34 | /** |
||
35 | * Message templates |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $messageTemplates = [ |
||
40 | self::INVALID_VALUE => '', // added dynamically |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * Filename of the resource file. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $filename; |
||
49 | |||
50 | /** |
||
51 | * Returns true, if value is valid. False otherwise. |
||
52 | * |
||
53 | * @param mixed $value |
||
54 | * |
||
55 | * @return bool |
||
56 | */ |
||
57 | 9 | public function isValid($value) |
|
77 | |||
78 | /** |
||
79 | * Set the filename of the resource file. |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | 9 | public function getFilename() |
|
87 | |||
88 | /** |
||
89 | * Get the filename of the resource file. |
||
90 | * |
||
91 | * @param mixed $filename |
||
92 | * @return AbstractResourceValidator |
||
93 | */ |
||
94 | 9 | public function setFilename($filename) |
|
100 | } |
||
101 |