Spec-Zone.ru › Laravel 8

Файл

класс Файл расширяет 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)

Выполнить замыкание при разрешении фасада.

Параметры

Closure $callback

Возвращаемое значение

void

static MockInterface spy()

Преобразовать фасад в шпион Mockery.

Возвращаемое значение

MockInterface

static MockInterface partialMock()

Инициализировать частичный макет на фасаде.

Возвращаемое значение

MockInterface

static Expectation shouldReceive()

Инициализировать ожидание макета на фасаде.

Возвращаемое значение

Expectation

static protected MockInterface createFreshMockInstance()

Создать свежий экземпляр макета для данного класса.

Возвращаемое значение

MockInterface

static protected MockInterface createMock()

Создать свежий экземпляр макета для данного класса.

Возвращаемое значение

MockInterface

static protected bool isMock()

Определяет, установлен ли макет как экземпляр фасада.

Возвращаемое значение

bool

static protected string|null getMockableClass()

Получить класс, подлежащий макетированию, для связанного экземпляра.

Возвращаемое значение

string|null

static void swap(mixed $instance)

Замена базового экземпляра за фасадом.

Параметры

mixed $instance

Возвращаемое значение

void

static mixed getFacadeRoot()

Получить корневый объект за фасадом.

Возвращаемое значение

mixed

static protected string getFacadeAccessor()

Получить зарегистрированное имя компонента.

Возвращаемое значение

string

static protected mixed resolveFacadeInstance(object|string $name)

Разрешить корневой экземпляр фасада из контейнера.

Параметры

object|string $name

Возвращаемое значение

mixed

static void clearResolvedInstance(string $name)

Очистить разрешенный экземпляр фасада.

Параметры

string $name

Возвращаемое значение

void

static void clearResolvedInstances()

Очистить все разрешенные экземпляры.

Возвращаемое значение

void

static Application getFacadeApplication()

Получить экземпляр приложения за фасадом.

Возвращаемое значение

Application

static void setFacadeApplication(Application $app)

Установить экземпляр приложения.

Параметры

Application $app

Возвращаемое значение

void

static mixed __callStatic(string $method, array $args)

Обработка динамических статических вызовов объекта.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

RuntimeException

static SplFileInfo[] allFiles(string $directory, bool $hidden = false)

Нет описания

Parameters

string $directory
bool $hidden

Return Value

SplFileInfo[]

static SplFileInfo[] files(string $directory, bool $hidden = false)

Нет описания

Parameters

string $directory
bool $hidden

Return Value

SplFileInfo[]

static array directories(string $directory)

Нет описания

Parameters

string $directory

Return Value

array

static array glob(string $pattern, int $flags)

Нет описания

Parameters

string $pattern
int $flags

Return Value

array

static bool cleanDirectory(string $directory)

Нет описания

Parameters

string $directory

Return Value

bool

static bool copy(string $path, string $target)

Нет описания

Parameters

string $path
string $target

Return Value

bool

static bool copyDirectory(string $directory, string $destination, int|null $options = null)

Нет описания

Parameters

string $directory
string $destination
int|null $options

Return Value

bool

static bool delete(string|array $paths)

Нет описания

Parameters

string|array $paths

Return Value

bool

static bool deleteDirectories(string $directory)

Нет описания

Parameters

string $directory

Return Value

bool

static bool deleteDirectory(string $directory, bool $preserve = false)

Нет описания

Parameters

string $directory
bool $preserve

Return Value

bool

static bool exists(string $path)

Нет описания

Parameters

string $path

Return Value

bool

static bool isDirectory(string $directory)

Нет описания

Parameters

string $directory

Return Value

bool

static bool isFile(string $file)

Нет описания

Parameters

string $file

Return Value

bool

static bool isReadable(string $path)

Нет описания

Parameters

string $path

Return Value

bool

static bool isWritable(string $path)

Нет описания

Parameters

string $path

Return Value

bool

static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)

Нет описания

Parameters

string $path
int $mode
bool $recursive
bool $force

Return Value

bool

static bool missing(string $path)

Нет описания

Parameters

string $path

Return Value

bool

static bool move(string $path, string $target)

Нет описания

Parameters

string $path
string $target

Return Value

bool

static bool moveDirectory(string $from, string $to, bool $overwrite = false)

Нет описания

Parameters

string $from
string $to
bool $overwrite

Return Value

bool

static int append(string $path, string $data)

Нет описания

Parameters

string $path
string $data

Return Value

int

static int lastModified(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

int

static int prepend(string $path, string $data)

Без описания

Параметры

string $path
string $data

Возвращаемое значение

int

static int size(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

int

static int|bool put(string $path, string $contents, bool $lock = false)

Без описания

Параметры

string $path
string $contents
bool $lock

Возвращаемое значение

int|bool

static mixed chmod(string $path, int|null $mode = null)

Без описания

Параметры

string $path
int|null $mode

Возвращаемое значение

mixed

static mixed getRequire(string $path, array $data = [])

Без описания

Параметры

string $path
array $data

Возвращаемое значение

mixed

static mixed requireOnce(string $file, array $data = [])

Без описания

Параметры

string $file
array $data

Возвращаемое значение

mixed

static string basename(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string dirname(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string extension(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string get(string $path, bool $lock = false)

Без описания

Параметры

string $path
bool $lock

Возвращаемое значение

string

static string hash(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string name(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string sharedGet(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string type(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string

static string|false mimeType(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string|false

static string|null guessExtension(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

string|null

static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)

Без описания

Параметры

string $path
int $mode
bool $recursive

Возвращаемое значение

void

static void link(string $target, string $link)

Без описания

Параметры

string $target
string $link

Возвращаемое значение

void

static LazyCollection lines(string $path)

Без описания

Параметры

string $path

Возвращаемое значение

LazyCollection

static void relativeLink(string $target, string $link)

Без описания

Параметры

string $target
string $link

Возвращаемое значение

void

static void replace(string $path, string $content)

Без описания

Параметры

string $path
string $content

Возвращаемое значение

void

© 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API