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