PHP 클래스 Themosis\Asset\AssetFinder

파일 보기 프로젝트 열기: themosis/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$extensions array List of URL schemes.

공개 메소드들

메소드 설명
addPaths ( array $paths ) Add paths to look for assets.
find ( string $path ) : string Get the full URL path of an asset.

보호된 메소드들

메소드 설명
findInPaths ( string $path, array $dirs ) : string Look for an asset file in all registered directories.
isExternal ( string $path ) : boolean Check if a path is external or not.
parsePath ( string $path ) : string Sanitized the given asset path and check if there is a '/' symbol at the beginning of the path.

메소드 상세

addPaths() 공개 메소드

Add paths to look for assets.
public addPaths ( array $paths )
$paths array

find() 공개 메소드

Get the full URL path of an asset.
public find ( string $path ) : string
$path string
리턴 string

findInPaths() 보호된 메소드

Look for an asset file in all registered directories.
protected findInPaths ( string $path, array $dirs ) : string
$path string The relative path.
$dirs array Registered asset directories.
리턴 string

isExternal() 보호된 메소드

Check if a path is external or not.
protected isExternal ( string $path ) : boolean
$path string
리턴 boolean

parsePath() 보호된 메소드

Sanitized the given asset path and check if there is a '/' symbol at the beginning of the path.
protected parsePath ( string $path ) : string
$path string
리턴 string

프로퍼티 상세

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

List of URL schemes.
protected array $extensions
리턴 array