Файл
класс Файл расширяет Facade (Просмотреть исходный код)
Свойства
| статический защищенный Application | $app | Экземпляр приложения, к которому осуществляется фасадный доступ. | из Facade |
| статический защищенный массив | $resolvedInstance | Разрешенные экземпляры объектов. | из Facade |
Методы
| static void | resolved(Closure $callback)
Выполнить замыкание, когда фасад будет разрешён. | from Facade |
| static MockInterface | spy()
Преобразовать фасад в шпион Mockery. | from Facade |
| static MockInterface | partialMock()
Инициировать частичное моделирование на фасаде. | from Facade |
| static Expectation | shouldReceive()
Инициировать ожидание моделирования на фасаде. | from Facade |
| static MockInterface | createFreshMockInstance()
Создать свежий экземпляр модели для данного класса. | from Facade |
| static MockInterface | createMock()
Создать свежий экземпляр модели для данного класса. | from Facade |
| static bool | isMock()
Определяет, установлен ли макет в качестве экземпляра фасада. | from Facade |
| static string|null | getMockableClass()
Получить класс, подлежащий моделированию, для связанного экземпляра. | from Facade |
| static void | swap(mixed $instance)
Обмен базового экземпляра за фасадом. | from Facade |
| static mixed | getFacadeRoot()
Получить корневый объект за фасадом. | from Facade |
| static string | getFacadeAccessor()
Получить зарегистрированное имя компонента. | |
| static mixed | resolveFacadeInstance(object|string $name)
Разрешить экземпляр корневого фасада из контейнера. | from Facade |
| static void | clearResolvedInstance(string $name)
Очистить разрешённый экземпляр фасада. | from Facade |
| static void | clearResolvedInstances()
Очистить все разрешённые экземпляры. | from Facade |
| static Application | getFacadeApplication()
Получить экземпляр приложения за фасадом. | from Facade |
| static void | setFacadeApplication(Application $app)
Установить экземпляр приложения. | from Facade |
| static mixed | __callStatic(string $method, array $args)
Обработать динамические статические вызовы объекта. | from Facade |
| static SplFileInfo[] | allFiles(string $directory, bool $hidden = false) Без описания | |
| static SplFileInfo[] | files(string $directory, bool $hidden = false) Без описания | |
| static array | directories(string $directory) Без описания | |
| static array | glob(string $pattern, int $flags) Без описания | |
| static bool | cleanDirectory(string $directory) Без описания | |
| static bool | copy(string $path, string $target) Без описания | |
| static bool | copyDirectory(string $directory, string $destination, int|null $options = null) Без описания | |
| static bool | delete(string|array $paths) Без описания | |
| static bool | deleteDirectories(string $directory) Без описания | |
| static bool | deleteDirectory(string $directory, bool $preserve = false) Без описания | |
| static bool | exists(string $path) Без описания | |
| static bool | isDirectory(string $directory) Без описания | |
| static bool | isFile(string $file) Без описания | |
| static bool | isReadable(string $path) Без описания | |
| static bool | isWritable(string $path) Без описания | |
| static bool | makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false) Без описания | |
| static bool | missing(string $path) Без описания | |
| static bool | move(string $path, string $target) Без описания | |
| static bool | moveDirectory(string $from, string $to, bool $overwrite = false) Без описания | |
| static int | append(string $path, string $data) Без описания | |
| static int | lastModified(string $path) Без описания | |
| static int | prepend(string $path, string $data) Без описания | |
| static int | size(string $path) Без описания | |
| static int|bool | put(string $path, string $contents, bool $lock = false) Без описания |
| static mixed | chmod(string $path, int|null $mode = null) Описание отсутствует | |
| static mixed | getRequire(string $path, array $data = []) Описание отсутствует | |
| static mixed | requireOnce(string $file, array $data = []) Описание отсутствует | |
| static string | basename(string $path) Описание отсутствует | |
| static string | dirname(string $path) Описание отсутствует | |
| static string | extension(string $path) Описание отсутствует | |
| static string | get(string $path, bool $lock = false) Описание отсутствует | |
| static string | hash(string $path) Описание отсутствует | |
| static string | name(string $path) Описание отсутствует | |
| static string | sharedGet(string $path) Описание отсутствует | |
| static string | type(string $path) Описание отсутствует | |
| static string|false | mimeType(string $path) Описание отсутствует | |
| static string|null | guessExtension(string $path) Описание отсутствует | |
| static void | ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true) Описание отсутствует | |
| static void | link(string $target, string $link) Описание отсутствует | |
| static LazyCollection | lines(string $path) Описание отсутствует | |
| static void | relativeLink(string $target, string $link) Описание отсутствует | |
| static void | replace(string $path, string $content) Описание отсутствует |
Подробности
static void resolved(Closure $callback)
Выполнить замыкание при разрешении фасада.
static MockInterface spy()
Преобразовать фасад в шпион Mockery.
static MockInterface partialMock()
Инициализировать частичный макет на фасаде.
static Expectation shouldReceive()
Инициализировать ожидание макета на фасаде.
static protected MockInterface createFreshMockInstance()
Создать свежий экземпляр макета для данного класса.
static protected MockInterface createMock()
Создать свежий экземпляр макета для данного класса.
static protected bool isMock()
Определяет, установлен ли макет как экземпляр фасада.
static protected string|null getMockableClass()
Получить класс, подлежащий макетированию, для связанного экземпляра.
static void swap(mixed $instance)
Замена базового экземпляра за фасадом.
static mixed getFacadeRoot()
Получить корневый объект за фасадом.
static protected string getFacadeAccessor()
Получить зарегистрированное имя компонента.
static protected mixed resolveFacadeInstance(object|string $name)
Разрешить корневой экземпляр фасада из контейнера.
static void clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада.
static void clearResolvedInstances()
Очистить все разрешенные экземпляры.
static Application getFacadeApplication()
Получить экземпляр приложения за фасадом.
static void setFacadeApplication(Application $app)
Установить экземпляр приложения.
static mixed __callStatic(string $method, array $args)
Обработка динамических статических вызовов объекта.
static SplFileInfo[] allFiles(string $directory, bool $hidden = false)
Нет описания
static SplFileInfo[] files(string $directory, bool $hidden = false)
Нет описания
static array directories(string $directory)
Нет описания
static array glob(string $pattern, int $flags)
Нет описания
static bool cleanDirectory(string $directory)
Нет описания
static bool copy(string $path, string $target)
Нет описания
static bool copyDirectory(string $directory, string $destination, int|null $options = null)
Нет описания
static bool delete(string|array $paths)
Нет описания
static bool deleteDirectories(string $directory)
Нет описания
static bool deleteDirectory(string $directory, bool $preserve = false)
Нет описания
static bool exists(string $path)
Нет описания
static bool isDirectory(string $directory)
Нет описания
static bool isFile(string $file)
Нет описания
static bool isReadable(string $path)
Нет описания
static bool isWritable(string $path)
Нет описания
static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)
Нет описания
static bool missing(string $path)
Нет описания
static bool move(string $path, string $target)
Нет описания
static bool moveDirectory(string $from, string $to, bool $overwrite = false)
Нет описания
static int append(string $path, string $data)
Нет описания
static int lastModified(string $path)
Без описания
static int prepend(string $path, string $data)
Без описания
static int size(string $path)
Без описания
static int|bool put(string $path, string $contents, bool $lock = false)
Без описания
static mixed chmod(string $path, int|null $mode = null)
Без описания
static mixed getRequire(string $path, array $data = [])
Без описания
static mixed requireOnce(string $file, array $data = [])
Без описания
static string basename(string $path)
Без описания
static string dirname(string $path)
Без описания
static string extension(string $path)
Без описания
static string get(string $path, bool $lock = false)
Без описания
static string hash(string $path)
Без описания
static string name(string $path)
Без описания
static string sharedGet(string $path)
Без описания
static string type(string $path)
Без описания
static string|false mimeType(string $path)
Без описания
static string|null guessExtension(string $path)
Без описания
static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)
Без описания
static void link(string $target, string $link)
Без описания
static LazyCollection lines(string $path)
Без описания
static void relativeLink(string $target, string $link)
Без описания
static void replace(string $path, string $content)
Без описания
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/Facades/File.html