1 | <?php namespace Webwizo\Shortcodes\View; |
||
9 | class View extends IlluminateView implements ArrayAccess, Renderable |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Short code engine resolver |
||
14 | * |
||
15 | * @var \Webwizo\Shortcodes\Compilers\ShortcodeCompiler |
||
16 | */ |
||
17 | public $shortcode; |
||
18 | |||
19 | /** |
||
20 | * Create a new view instance. |
||
21 | * |
||
22 | * @param \Illuminate\View\Factory|Factory $factory |
||
23 | * @param \Illuminate\View\Compilers\EngineInterface|EngineInterface $engine |
||
24 | * @param string $view |
||
25 | * @param string $path |
||
26 | * @param array $data |
||
27 | * @param \Webwizo\Shortcodes\Compilers\ShortcodeCompiler $shortcode |
||
28 | */ |
||
29 | public function __construct(Factory $factory, EngineInterface $engine, $view, $path, $data = [], ShortcodeCompiler $shortcode) |
||
34 | |||
35 | /** |
||
36 | * Enable the shortcodes |
||
37 | */ |
||
38 | public function withShortcodes() |
||
44 | |||
45 | /** |
||
46 | * Disable the shortcodes |
||
47 | */ |
||
48 | public function withoutShortcodes() |
||
54 | |||
55 | public function withStripShortcodes() |
||
61 | |||
62 | /** |
||
63 | * Get the contents of the view instance. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | protected function renderContents() |
||
89 | } |
||
90 |