PHP Класс Bolt\Filesystem\Matcher

Автор: Carson Full ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$filesystem Bolt\Filesystem\FilesystemInterface
$filesystemsToCheck string[]

Открытые методы

Метод Описание
__construct ( Bolt\Filesystem\FilesystemInterface $filesystem, array $filesystemsToCheck ) Constructor.
getFile ( Bolt\Filesystem\Handler\FileInterface | string $path ) : Bolt\Filesystem\Handler\FileInterface Gets the file object for the path given. Paths with the mount point included are preferred, but are not required for BC. If the mount point is not included a list of filesystems are checked and chosen if the file exists in that filesystem.
getImage ( Bolt\Filesystem\Handler\ImageInterface | string $path ) : Bolt\Filesystem\Handler\ImageInterface Same as {@see getFile} for images.

Приватные методы

Метод Описание
containsMountPoint ( string $path ) : boolean Change if a path contains a mount point.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Bolt\Filesystem\FilesystemInterface $filesystem, array $filesystemsToCheck )
$filesystem Bolt\Filesystem\FilesystemInterface
$filesystemsToCheck array

getFile() публичный Метод

Gets the file object for the path given. Paths with the mount point included are preferred, but are not required for BC. If the mount point is not included a list of filesystems are checked and chosen if the file exists in that filesystem.
public getFile ( Bolt\Filesystem\Handler\FileInterface | string $path ) : Bolt\Filesystem\Handler\FileInterface
$path Bolt\Filesystem\Handler\FileInterface | string
Результат Bolt\Filesystem\Handler\FileInterface

getImage() публичный Метод

Same as {@see getFile} for images.
public getImage ( Bolt\Filesystem\Handler\ImageInterface | string $path ) : Bolt\Filesystem\Handler\ImageInterface
$path Bolt\Filesystem\Handler\ImageInterface | string
Результат Bolt\Filesystem\Handler\ImageInterface

Описание свойств

$filesystem защищенное свойство

protected FilesystemInterface,Bolt\Filesystem $filesystem
Результат Bolt\Filesystem\FilesystemInterface

$filesystemsToCheck защищенное свойство

protected string[] $filesystemsToCheck
Результат string[]