1 | <?php |
||
23 | abstract class AbstractTemplateView extends AbstractView |
||
|
|||
24 | { |
||
25 | /** |
||
26 | * The initial rendering context for this template view. |
||
27 | * Due to the rendering stack, another rendering context might be active |
||
28 | * at certain points while rendering the template. |
||
29 | * |
||
30 | * @var RenderingContextInterface |
||
31 | */ |
||
32 | protected $baseRenderingContext; |
||
33 | |||
34 | public function __construct(RenderingContextInterface $context = null) |
||
41 | |||
42 | public function getTemplatePaths(): TemplatePaths |
||
46 | |||
47 | public function getViewHelperResolver(): ViewHelperResolver |
||
51 | |||
52 | public function getRenderingContext(): RenderingContextInterface |
||
56 | |||
57 | public function setRenderingContext(RenderingContextInterface $renderingContext): void |
||
63 | |||
64 | /** |
||
65 | * Assign a value to the variable container. |
||
66 | * |
||
67 | * @param string $key The key of a view variable to set |
||
68 | * @param mixed $value The value of the view variable |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function assign($key, $value): ViewInterface |
||
76 | |||
77 | /** |
||
78 | * Assigns multiple values to the JSON output. |
||
79 | * However, only the key "value" is accepted. |
||
80 | * |
||
81 | * @param array $values Keys and values - only a value with key "value" is considered |
||
82 | * @return self |
||
83 | */ |
||
84 | public function assignMultiple(array $values): ViewInterface |
||
92 | |||
93 | /** |
||
94 | * Loads the template source and render the template. |
||
95 | * If "layoutName" is set in a PostParseFacet callback, it will render the file with the given layout. |
||
96 | * |
||
97 | * @param string|null $actionName If set, this action's template will be rendered instead of the one defined in the context. |
||
98 | * @return mixed Rendered Template |
||
99 | */ |
||
100 | public function render(?string $actionName = null) |
||
122 | |||
123 | /** |
||
124 | * Renders a given section. |
||
125 | * |
||
126 | * @param string $sectionName Name of section to render |
||
127 | * @param array $variables The variables to use |
||
128 | * @param boolean $ignoreUnknown Ignore an unknown section and just return an empty string |
||
129 | * @return mixed rendered template for the section |
||
130 | * @throws ChildNotFoundException |
||
131 | * @throws InvalidTemplateResourceException |
||
132 | * @throws Exception |
||
133 | */ |
||
134 | public function renderSection(string $sectionName, array $variables = [], bool $ignoreUnknown = false) |
||
149 | |||
150 | /** |
||
151 | * Renders a partial. |
||
152 | * |
||
153 | * @param string $partialName |
||
154 | * @param string|null $sectionName |
||
155 | * @param array $variables |
||
156 | * @param boolean $ignoreUnknown Ignore an unknown section and just return an empty string |
||
157 | * @return mixed |
||
158 | * @throws ChildNotFoundException |
||
159 | * @throws InvalidTemplateResourceException |
||
160 | * @throws Exception |
||
161 | */ |
||
162 | public function renderPartial(string $partialName, ?string $sectionName, array $variables, bool $ignoreUnknown = false) |
||
166 | } |
||
167 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.