PHP 클래스 Themosis\Finder\Finder

상속: implements Themosis\Finder\IFinder
파일 보기 프로젝트 열기: themosis/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$extensions array Allowed file extensions.
$files array $key is the file name or relative path. $value is the file full path.
$paths array List of given/registered paths.

공개 메소드들

메소드 설명
addPaths ( array $paths ) Register multiple file paths.
find ( string $name ) : string Returns the file path.
getFiles ( ) : array Return a list of found files.
getPaths ( ) : array Return a list of registered paths.

보호된 메소드들

메소드 설명
addPath ( string $key, string $path ) Register a path.
findInPaths ( string $name, array $paths ) : array Look after a file in registered paths.
getPossibleFiles ( string $name ) : array Returns a list of possible file names.

메소드 상세

addPath() 보호된 메소드

Register a path.
protected addPath ( string $key, string $path )
$key string The file URL if defined or numeric index.
$path string

addPaths() 공개 메소드

Register multiple file paths.
public addPaths ( array $paths )
$paths array

find() 공개 메소드

Returns the file path.
public find ( string $name ) : string
$name string The file name or relative path.
리턴 string

findInPaths() 보호된 메소드

Look after a file in registered paths.
protected findInPaths ( string $name, array $paths ) : array
$name string The file name or relative path.
$paths array Registered paths.
리턴 array

getFiles() 공개 메소드

Return a list of found files.
public getFiles ( ) : array
리턴 array

getPaths() 공개 메소드

Return a list of registered paths.
public getPaths ( ) : array
리턴 array

getPossibleFiles() 보호된 메소드

Returns a list of possible file names.
protected getPossibleFiles ( string $name ) : array
$name string The file name or relative path.
리턴 array

프로퍼티 상세

$extensions 보호되어 있는 프로퍼티

Allowed file extensions.
protected array $extensions
리턴 array

$files 보호되어 있는 프로퍼티

$key is the file name or relative path. $value is the file full path.
protected array $files
리턴 array

$paths 보호되어 있는 프로퍼티

List of given/registered paths.
protected array $paths
리턴 array