View.php 5.5 KB

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