@@ 164-171 (lines=8) @@ | ||
161 | * |
|
162 | * @return $this |
|
163 | */ |
|
164 | public function addCallback($callback, $data = [], $region = "main", $sort = 0) |
|
165 | { |
|
166 | $view = new View(); |
|
167 | $view->set(["callback" => $callback], $data, $sort, "callback"); |
|
168 | $this->views[$region][] = $view; |
|
169 | ||
170 | return $this; |
|
171 | } |
|
172 | ||
173 | ||
174 | ||
@@ 184-191 (lines=8) @@ | ||
181 | * |
|
182 | * @return $this |
|
183 | */ |
|
184 | public function addString($content, $region = "main", $sort = 0) |
|
185 | { |
|
186 | $view = new View(); |
|
187 | $view->set($content, [], $sort, "string"); |
|
188 | $this->views[$region][] = $view; |
|
189 | ||
190 | return $this; |
|
191 | } |
|
192 | ||
193 | ||
194 |