| 1 | <?php | ||
| 19 | class Template extends BaseObject implements ViewInterface | ||
| 20 | { | ||
| 21 | /** | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | public $mode = View::TEMPLATE_MODE_CP; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var string | ||
| 28 | */ | ||
| 29 | public $template = ''; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param array $params | ||
| 33 | * @return string | ||
| 34 | * | ||
| 35 | * @throws \Twig\Error\LoaderError | ||
| 36 | * @throws \Twig\Error\RuntimeError | ||
| 37 | * @throws \Twig\Error\SyntaxError | ||
| 38 | * @throws \yii\base\Exception | ||
| 39 | */ | ||
| 40 | public function render(array $params = []): string | ||
| 53 | |||
| 54 | /** | ||
| 55 | * @param array $params | ||
| 56 | * @return string | ||
| 57 | * | ||
| 58 | * @throws \Twig\Error\LoaderError | ||
| 59 | * @throws \Twig\Error\RuntimeError | ||
| 60 | * @throws \Twig\Error\SyntaxError | ||
| 61 | */ | ||
| 62 | protected function renderTemplate(array $params = []): string | ||
| 69 | } | ||
| 70 |