PHP 클래스 Gc\Mvc\Resolver\AssetAliasPathStack

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

보호된 프로퍼티들

프로퍼티 타입 설명
$aliases Array Aliases
$lfiProtectionOn boolean Flag indicating whether or not LFI protection for rendering view scripts is enabled
$mimeResolver AssetManager\Service\MimeResolver The mime resolver.
$serviceLocator Zend\ServiceManager\ServiceManager The service manager.

공개 메소드들

메소드 설명
__construct ( Zend\ServiceManager\ServiceManager $serviceManager = null ) Constructor
addAlias ( string $alias, string $path ) : void Add a single alias to the stack
getMimeResolver ( ) : AssetManager\Service\MimeResolver Get the mime resolver
isLfiProtectionOn ( ) : boolean Return status of LFI protection flag
resolve ( string $name ) : null | Assetic\Asset\FileAsset Resolve an Asset
setLfiProtection ( boolean $flag ) : self Set LFI protection flag
setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) : void Set the mime resolver

보호된 메소드들

메소드 설명
loadDatatypesAliases ( ) : void Load Datatypes aliases
loadModulesAliases ( ) : void Load module aliases
normalizePath ( string $path ) : string Normalize a path for insertion in the stack

메소드 상세

__construct() 공개 메소드

Populate the array stack with a list of aliases and their corresponding paths
public __construct ( Zend\ServiceManager\ServiceManager $serviceManager = null )
$serviceManager Zend\ServiceManager\ServiceManager Service Manager

addAlias() 공개 메소드

Add a single alias to the stack
public addAlias ( string $alias, string $path ) : void
$alias string Alias
$path string Path
리턴 void

getMimeResolver() 공개 메소드

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

isLfiProtectionOn() 공개 메소드

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

loadDatatypesAliases() 보호된 메소드

Load Datatypes aliases
protected loadDatatypesAliases ( ) : void
리턴 void

loadModulesAliases() 보호된 메소드

Load module aliases
protected loadModulesAliases ( ) : void
리턴 void

normalizePath() 보호된 메소드

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

resolve() 공개 메소드

Resolve an Asset
public resolve ( string $name ) : null | Assetic\Asset\FileAsset
$name string The path to resolve.
리턴 null | Assetic\Asset\FileAsset Asset instance when found, null when not.

setLfiProtection() 공개 메소드

Set LFI protection flag
public setLfiProtection ( boolean $flag ) : self
$flag boolean Define if lfi protection is active
리턴 self

setMimeResolver() 공개 메소드

Set the mime resolver
public setMimeResolver ( AssetManager\Service\MimeResolver $resolver ) : void
$resolver AssetManager\Service\MimeResolver Resolver
리턴 void

프로퍼티 상세

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

Aliases
protected Array $aliases
리턴 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

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

The service manager.
protected ServiceManager,Zend\ServiceManager $serviceLocator
리턴 Zend\ServiceManager\ServiceManager