1 | <?php |
||
25 | class Renderer extends AbstractValidateRenderer |
||
26 | { |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $skipValidators = array( |
||
31 | 'Explode', |
||
32 | 'Upload' |
||
33 | ); |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $rules = array(); |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $messages = array(); |
||
44 | |||
45 | /** |
||
46 | * @var RulePluginManager |
||
47 | */ |
||
48 | protected $rulePluginManager; |
||
49 | |||
50 | /** |
||
51 | * @param RulePluginManager $rulePluginManager |
||
52 | */ |
||
53 | public function setRulePluginManager(RulePluginManager $rulePluginManager) |
||
57 | |||
58 | /** |
||
59 | * @return RulePluginManager |
||
60 | */ |
||
61 | public function getRulePluginManager() |
||
65 | |||
66 | /** |
||
67 | * Executed before the ZF2 view helper renders the element |
||
68 | * |
||
69 | * @param string $formAlias |
||
70 | * @param \Zend\View\Renderer\PhpRenderer $view |
||
71 | * @param \Zend\Form\FormInterface $form |
||
72 | * @param array $options |
||
73 | * @return FormInterface |
||
74 | */ |
||
75 | public function preRenderForm($formAlias, View $view, FormInterface $form = null, array $options = array()) |
||
97 | |||
98 | /** |
||
99 | * @param \Zend\Form\FormInterface $form |
||
100 | * @param Options $options |
||
101 | * @return string |
||
102 | */ |
||
103 | protected function buildInlineJavascript(FormInterface $form, Options $options) |
||
122 | |||
123 | /** |
||
124 | * @param string $formAlias |
||
125 | * @param \Zend\Form\ElementInterface $element |
||
126 | * @param \Zend\Validator\ValidatorInterface $validator |
||
127 | * @return mixed|void |
||
128 | */ |
||
129 | protected function addValidationAttributesForElement($formAlias, ElementInterface $element, ValidatorInterface $validator = null) |
||
158 | |||
159 | /** |
||
160 | * @param \Zend\Validator\ValidatorInterface $validator |
||
161 | * @return null|Rule\AbstractRule |
||
162 | */ |
||
163 | public function getRule(ValidatorInterface $validator = null) |
||
175 | |||
176 | /** |
||
177 | * @param string $elementName |
||
178 | * @param array $rules |
||
179 | */ |
||
180 | protected function addRules($elementName, array $rules = array()) |
||
187 | |||
188 | /** |
||
189 | * @param string $elementName |
||
190 | * @param array $messages |
||
191 | */ |
||
192 | protected function addMessages($elementName, array $messages = array()) |
||
199 | |||
200 | /** |
||
201 | * Resets previously set rules and messages, if you have multiple forms on one request |
||
202 | */ |
||
203 | protected function reset() |
||
208 | } |
||
209 |