1 | <?php |
||
9 | trait DeprecatedViewHelper |
||
10 | { |
||
11 | /** |
||
12 | * ViewHelper Variable Container |
||
13 | * @var ViewHelperVariableContainer |
||
14 | * @deprecated Will be removed in Fluid 3.0; use $renderingContext->getViewHelperVariableContainer() instead. |
||
15 | * @api |
||
16 | */ |
||
17 | protected $viewHelperVariableContainer; |
||
18 | |||
19 | /** |
||
20 | * Current variable container reference. |
||
21 | * @var VariableProviderInterface |
||
22 | * @deprecated Will be removed in Fluid 3.0; use $renderingContext->getVariableProvider() instead. |
||
23 | * @api |
||
24 | */ |
||
25 | protected $templateVariableContainer; |
||
26 | |||
27 | /** |
||
28 | * @var NodeInterface[] array |
||
29 | * @api |
||
30 | * @deprecated Will be removed in Fluid 3.0; use $this->viewHelperNode->getChildNodes() instead. |
||
31 | */ |
||
32 | protected $childNodes = []; |
||
33 | |||
34 | /** |
||
35 | * Overridden method which sets deprecated properties. |
||
36 | * |
||
37 | * @param RenderingContextInterface $renderingContext |
||
38 | * @return void |
||
39 | */ |
||
40 | public function setRenderingContext(RenderingContextInterface $renderingContext) |
||
46 | |||
47 | /** |
||
48 | * DEPRECATED - is no longer called. |
||
49 | * |
||
50 | * This is PURELY INTERNAL! Never override this method!! |
||
51 | * |
||
52 | * @deprecated |
||
53 | * @param NodeInterface[] $childNodes |
||
54 | * @return void |
||
55 | */ |
||
56 | public function setChildNodes(array $childNodes) |
||
60 | |||
61 | /** |
||
62 | * DEPRECATED - is no longer called. |
||
63 | * |
||
64 | * Resets the ViewHelper state. |
||
65 | * |
||
66 | * Overwrite this method if you need to get a clean state of your ViewHelper. |
||
67 | * |
||
68 | * @deprecated |
||
69 | * @return void |
||
70 | */ |
||
71 | public function resetState() |
||
74 | |||
75 | /** |
||
76 | * DEPRECATED - is no longer called. |
||
77 | * |
||
78 | * Initializes the ViewHelper. Deprecated since frameworks by the norm provide object lifecycle methods. |
||
79 | * |
||
80 | * @deprecated |
||
81 | * @return void |
||
82 | */ |
||
83 | public function initialize() |
||
86 | |||
87 | /** |
||
88 | * DEPRECATED - is no longer called; handled by ViewHelperArgumentValidator |
||
89 | * |
||
90 | * Validate arguments, and throw exception if arguments do not validate. |
||
91 | * |
||
92 | * @deprecated |
||
93 | * @return void |
||
94 | * @throws \InvalidArgumentException |
||
95 | */ |
||
96 | public function validateArguments() |
||
116 | |||
117 | /** |
||
118 | * Check whether the defined type matches the value type |
||
119 | * |
||
120 | * @param string $type |
||
121 | * @param mixed $value |
||
122 | * @return boolean |
||
123 | */ |
||
124 | protected function isValidType($type, $value) |
||
153 | |||
154 | /** |
||
155 | * Return the first element of the given array, ArrayAccess or Traversable |
||
156 | * that is not empty |
||
157 | * |
||
158 | * @param mixed $value |
||
159 | * @return mixed |
||
160 | */ |
||
161 | protected function getFirstElementOfNonEmpty($value) |
||
172 | |||
173 | } |
||
174 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.