PHP 클래스 Bolt\Filesystem\Matcher

저자: Carson Full ([email protected])
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]