PHP 클래스 AssetManager\Resolver\PathStackResolver

상속: implements AssetManager\Resolver\ResolverInterface, implements AssetManager\Resolver\MimeResolverAwareInterface
파일 보기 프로젝트 열기: rwoverdijk/assetmanager 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$lfiProtectionOn boolean Flag indicating whether or not LFI protection for rendering view scripts is enabled
$mimeResolver AssetManager\Service\MimeResolver The mime resolver.
$paths Zend\Stdlib\SplStack

공개 메소드들

메소드 설명
__construct ( ) Constructor
addPath ( string $path ) Add a single path to the stack
addPaths ( array | Traversabl\Traversable $paths ) Add many paths to the stack at once
clearPaths ( ) : void Clear all paths
collect ( ) {@inheritDoc}
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
getPaths ( ) : Zend\Stdlib\SplStack Returns stack of paths
isLfiProtectionOn ( ) : boolean Return status of LFI protection flag
resolve ( $name ) {@inheritDoc}
setLfiProtection ( boolean $flag ) : self Set LFI protection flag
setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) Set the mime resolver
setPaths ( Traversabl\Traversable | array $paths ) Rest the path stack to the paths provided

보호된 메소드들

메소드 설명
normalizePath ( string $path ) : string Normalize a path for insertion in the stack

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

addPath() 공개 메소드

Add a single path to the stack
public addPath ( string $path )
$path string

addPaths() 공개 메소드

Add many paths to the stack at once
public addPaths ( array | Traversabl\Traversable $paths )
$paths array | Traversabl\Traversable

clearPaths() 공개 메소드

Clear all paths
public clearPaths ( ) : void
리턴 void

collect() 공개 메소드

{@inheritDoc}
public collect ( )

getMimeResolver() 공개 메소드

Get the mime resolver
public getMimeResolver ( ) : AssetManager\Service\MimeResolver
리턴 AssetManager\Service\MimeResolver

getPaths() 공개 메소드

Returns stack of paths
public getPaths ( ) : Zend\Stdlib\SplStack
리턴 Zend\Stdlib\SplStack

isLfiProtectionOn() 공개 메소드

Return status of LFI protection flag
public isLfiProtectionOn ( ) : boolean
리턴 boolean

normalizePath() 보호된 메소드

Normalize a path for insertion in the stack
protected normalizePath ( string $path ) : string
$path string
리턴 string

resolve() 공개 메소드

{@inheritDoc}
public resolve ( $name )

setLfiProtection() 공개 메소드

Set LFI protection flag
public setLfiProtection ( boolean $flag ) : self
$flag boolean
리턴 self

setMimeResolver() 공개 메소드

Set the mime resolver
public setMimeResolver ( AssetManager\Service\MimeResolver $resolver )
$resolver AssetManager\Service\MimeResolver

setPaths() 공개 메소드

Rest the path stack to the paths provided
public setPaths ( Traversabl\Traversable | array $paths )
$paths Traversabl\Traversable | array

프로퍼티 상세

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

Flag indicating whether or not LFI protection for rendering view scripts is enabled
protected bool $lfiProtectionOn
리턴 boolean

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

The mime resolver.
protected MimeResolver,AssetManager\Service $mimeResolver
리턴 AssetManager\Service\MimeResolver

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

protected SplStack,Zend\Stdlib $paths
리턴 Zend\Stdlib\SplStack