1 | <?php namespace Webwizo\ShortCodes\View; |
||
11 | class View extends IlluminateView implements ArrayAccess, Renderable { |
||
12 | |||
13 | /** |
||
14 | * Short code engine resolver |
||
15 | * @var 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 ShortcodeCompiler $shortcode |
||
28 | */ |
||
29 | public function __construct(Factory $factory, EngineInterface $engine, $view, $path, $data = array(), ShortcodeCompiler $shortcode) |
||
34 | |||
35 | /** |
||
36 | * Enable the shortcodes |
||
37 | */ |
||
38 | public function withShortcodes() |
||
43 | |||
44 | /** |
||
45 | * Disable the shortcodes |
||
46 | */ |
||
47 | public function withoutShortcodes() |
||
52 | |||
53 | public function withStripShortcodes() |
||
58 | |||
59 | /** |
||
60 | * Get the contents of the view instance. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function renderContents() |
||
94 | |||
95 | } |
||
96 |