| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Support\Facades;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @method static \Illuminate\Contracts\View\View file(string $path, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
|
|
|
7 |
* @method static \Illuminate\Contracts\View\View make(string $view, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
|
|
|
8 |
* @method static \Illuminate\Contracts\View\View first(array $views, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
|
|
|
9 |
* @method static string renderWhen(bool $condition, string $view, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
|
|
|
10 |
* @method static string renderUnless(bool $condition, string $view, \Illuminate\Contracts\Support\Arrayable|array $data = [], array $mergeData = [])
|
|
|
11 |
* @method static string renderEach(string $view, array $data, string $iterator, string $empty = 'raw|')
|
|
|
12 |
* @method static bool exists(string $view)
|
|
|
13 |
* @method static \Illuminate\Contracts\View\Engine getEngineFromPath(string $path)
|
|
|
14 |
* @method static mixed share(array|string $key, mixed|null $value = null)
|
|
|
15 |
* @method static void incrementRender()
|
|
|
16 |
* @method static void decrementRender()
|
|
|
17 |
* @method static bool doneRendering()
|
|
|
18 |
* @method static bool hasRenderedOnce(string $id)
|
|
|
19 |
* @method static void markAsRenderedOnce(string $id)
|
|
|
20 |
* @method static void addLocation(string $location)
|
|
|
21 |
* @method static \Illuminate\View\Factory addNamespace(string $namespace, string|array $hints)
|
|
|
22 |
* @method static \Illuminate\View\Factory prependNamespace(string $namespace, string|array $hints)
|
|
|
23 |
* @method static \Illuminate\View\Factory replaceNamespace(string $namespace, string|array $hints)
|
|
|
24 |
* @method static void addExtension(string $extension, string $engine, \Closure|null $resolver = null)
|
|
|
25 |
* @method static void flushState()
|
|
|
26 |
* @method static void flushStateIfDoneRendering()
|
|
|
27 |
* @method static array getExtensions()
|
|
|
28 |
* @method static \Illuminate\View\Engines\EngineResolver getEngineResolver()
|
|
|
29 |
* @method static \Illuminate\View\ViewFinderInterface getFinder()
|
|
|
30 |
* @method static void setFinder(\Illuminate\View\ViewFinderInterface $finder)
|
|
|
31 |
* @method static void flushFinderCache()
|
|
|
32 |
* @method static \Illuminate\Contracts\Events\Dispatcher getDispatcher()
|
|
|
33 |
* @method static void setDispatcher(\Illuminate\Contracts\Events\Dispatcher $events)
|
|
|
34 |
* @method static \Illuminate\Contracts\Container\Container getContainer()
|
|
|
35 |
* @method static void setContainer(\Illuminate\Contracts\Container\Container $container)
|
|
|
36 |
* @method static mixed shared(string $key, mixed $default = null)
|
|
|
37 |
* @method static array getShared()
|
|
|
38 |
* @method static void macro(string $name, object|callable $macro)
|
|
|
39 |
* @method static void mixin(object $mixin, bool $replace = true)
|
|
|
40 |
* @method static bool hasMacro(string $name)
|
|
|
41 |
* @method static void flushMacros()
|
|
|
42 |
* @method static void startComponent(\Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view, array $data = [])
|
|
|
43 |
* @method static void startComponentFirst(array $names, array $data = [])
|
|
|
44 |
* @method static string renderComponent()
|
|
|
45 |
* @method static mixed|null getConsumableComponentData(string $key, mixed $default = null)
|
|
|
46 |
* @method static void slot(string $name, string|null $content = null, array $attributes = [])
|
|
|
47 |
* @method static void endSlot()
|
|
|
48 |
* @method static array creator(array|string $views, \Closure|string $callback)
|
|
|
49 |
* @method static array composers(array $composers)
|
|
|
50 |
* @method static array composer(array|string $views, \Closure|string $callback)
|
|
|
51 |
* @method static void callComposer(\Illuminate\Contracts\View\View $view)
|
|
|
52 |
* @method static void callCreator(\Illuminate\Contracts\View\View $view)
|
|
|
53 |
* @method static void startFragment(string $fragment)
|
|
|
54 |
* @method static string stopFragment()
|
|
|
55 |
* @method static mixed getFragment(string $name, string|null $default = null)
|
|
|
56 |
* @method static array getFragments()
|
|
|
57 |
* @method static void flushFragments()
|
|
|
58 |
* @method static void startSection(string $section, string|null $content = null)
|
|
|
59 |
* @method static void inject(string $section, string $content)
|
|
|
60 |
* @method static string yieldSection()
|
|
|
61 |
* @method static string stopSection(bool $overwrite = false)
|
|
|
62 |
* @method static string appendSection()
|
|
|
63 |
* @method static string yieldContent(string $section, string $default = '')
|
|
|
64 |
* @method static string parentPlaceholder(string $section = '')
|
|
|
65 |
* @method static bool hasSection(string $name)
|
|
|
66 |
* @method static bool sectionMissing(string $name)
|
|
|
67 |
* @method static mixed getSection(string $name, string|null $default = null)
|
|
|
68 |
* @method static array getSections()
|
|
|
69 |
* @method static void flushSections()
|
|
|
70 |
* @method static void addLoop(\Countable|array $data)
|
|
|
71 |
* @method static void incrementLoopIndices()
|
|
|
72 |
* @method static void popLoop()
|
|
|
73 |
* @method static \stdClass|null getLastLoop()
|
|
|
74 |
* @method static array getLoopStack()
|
|
|
75 |
* @method static void startPush(string $section, string $content = '')
|
|
|
76 |
* @method static string stopPush()
|
|
|
77 |
* @method static void startPrepend(string $section, string $content = '')
|
|
|
78 |
* @method static string stopPrepend()
|
|
|
79 |
* @method static string yieldPushContent(string $section, string $default = '')
|
|
|
80 |
* @method static void flushStacks()
|
|
|
81 |
* @method static void startTranslation(array $replacements = [])
|
|
|
82 |
* @method static string renderTranslation()
|
|
|
83 |
*
|
|
|
84 |
* @see \Illuminate\View\Factory
|
|
|
85 |
*/
|
|
|
86 |
class View extends Facade
|
|
|
87 |
{
|
|
|
88 |
/**
|
|
|
89 |
* Get the registered name of the component.
|
|
|
90 |
*
|
|
|
91 |
* @return string
|
|
|
92 |
*/
|
|
|
93 |
protected static function getFacadeAccessor()
|
|
|
94 |
{
|
|
|
95 |
return 'view';
|
|
|
96 |
}
|
|
|
97 |
}
|