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