PHP 클래스 AsseticBundle\Configuration

파일 보기 프로젝트 열기: widmogrod/zf2-assetic-module 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$acceptableErrors array List of error types occurring in EVENT_DISPATCH_ERROR that will use this module to render assets.
$basePath string | null By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBasePath()" Example: /~jdo/
$baseUrl string | null By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBaseUrl()" Example: http://example.com/
$buildOnRequest boolean Should build assets on request.
$cacheEnabled boolean Is cache enabled.
$cachePath string Full path to cache directory.
$combine boolean Combine option giving the opportunity not to combine the assets in debug mode.
$controllers array Map of controllers names and assets configuration.
$debug boolean Debug option that is passed to Assetic.
$default array Default options.
$modules array Map of modules names and assets configuration.
$rendererToStrategy array Map of strategies that will be choose to setup Assetic\AssetInterface for particular Zend\View\Renderer\RendererInterface
$routes array Map of routes names and assets configuration.
$umask null | integer Umask
$webPath string Full path to public directory where assets will be generated.
$writeIfChanged boolean Asset will be save on disk, only when it's modification time was changed

공개 메소드들

메소드 설명
__construct ( $config = null )
addModule ( $name, array $options )
addRendererToStrategy ( $rendererClass, $strategyClass )
detectBaseUrl ( )
getAcceptableErrors ( )
getBasePath ( ) : null | string
getBaseUrl ( )
getBuildOnRequest ( ) : boolean
getCacheEnabled ( )
getCachePath ( )
getController ( $name, $default = null )
getControllers ( )
getDefault ( )
getModule ( $name, $default = null )
getModules ( )
getRoute ( $name, $default = null )
getRoutes ( )
getStrategyNameForRenderer ( $rendererName, $default = null )
getUmask ( ) : integer | null
getWebPath ( $file = null )
getWriteIfChanged ( ) : boolean
isCombine ( )
isDebug ( )
setAcceptableErrors ( array $acceptableErrors )
setBasePath ( null | string $basePath )
setBaseUrl ( $baseUrl )
setBuildOnRequest ( boolean $flag )
setCacheEnabled ( $cacheEnabled )
setCachePath ( $path )
setCombine ( $flag )
setControllers ( array $controllers )
setDebug ( $flag )
setDefault ( array $default )
setModules ( array $modules )
setRendererToStrategy ( array $strategyForRenderer )
setRoutes ( array $routes )
setUmask ( null | integer $umask )
setWebPath ( $path )
setWriteIfChanged ( boolean $flag )

보호된 메소드들

메소드 설명
assembleSetterNameFromConfigKey ( $key )
processArray ( $config )

메소드 상세

__construct() 공개 메소드

public __construct ( $config = null )

addModule() 공개 메소드

public addModule ( $name, array $options )
$options array

addRendererToStrategy() 공개 메소드

public addRendererToStrategy ( $rendererClass, $strategyClass )

assembleSetterNameFromConfigKey() 보호된 메소드

protected assembleSetterNameFromConfigKey ( $key )

detectBaseUrl() 공개 메소드

public detectBaseUrl ( )

getAcceptableErrors() 공개 메소드

public getAcceptableErrors ( )

getBasePath() 공개 메소드

public getBasePath ( ) : null | string
리턴 null | string

getBaseUrl() 공개 메소드

public getBaseUrl ( )

getBuildOnRequest() 공개 메소드

public getBuildOnRequest ( ) : boolean
리턴 boolean

getCacheEnabled() 공개 메소드

public getCacheEnabled ( )

getCachePath() 공개 메소드

public getCachePath ( )

getController() 공개 메소드

public getController ( $name, $default = null )

getControllers() 공개 메소드

public getControllers ( )

getDefault() 공개 메소드

public getDefault ( )

getModule() 공개 메소드

public getModule ( $name, $default = null )

getModules() 공개 메소드

public getModules ( )

getRoute() 공개 메소드

public getRoute ( $name, $default = null )

getRoutes() 공개 메소드

public getRoutes ( )

getStrategyNameForRenderer() 공개 메소드

public getStrategyNameForRenderer ( $rendererName, $default = null )

getUmask() 공개 메소드

public getUmask ( ) : integer | null
리턴 integer | null

getWebPath() 공개 메소드

public getWebPath ( $file = null )

getWriteIfChanged() 공개 메소드

public getWriteIfChanged ( ) : boolean
리턴 boolean

isCombine() 공개 메소드

public isCombine ( )

isDebug() 공개 메소드

public isDebug ( )

processArray() 보호된 메소드

protected processArray ( $config )

setAcceptableErrors() 공개 메소드

public setAcceptableErrors ( array $acceptableErrors )
$acceptableErrors array

setBasePath() 공개 메소드

public setBasePath ( null | string $basePath )
$basePath null | string

setBaseUrl() 공개 메소드

public setBaseUrl ( $baseUrl )

setBuildOnRequest() 공개 메소드

public setBuildOnRequest ( boolean $flag )
$flag boolean

setCacheEnabled() 공개 메소드

public setCacheEnabled ( $cacheEnabled )

setCachePath() 공개 메소드

public setCachePath ( $path )

setCombine() 공개 메소드

public setCombine ( $flag )

setControllers() 공개 메소드

public setControllers ( array $controllers )
$controllers array

setDebug() 공개 메소드

public setDebug ( $flag )

setDefault() 공개 메소드

public setDefault ( array $default )
$default array

setModules() 공개 메소드

public setModules ( array $modules )
$modules array

setRendererToStrategy() 공개 메소드

public setRendererToStrategy ( array $strategyForRenderer )
$strategyForRenderer array

setRoutes() 공개 메소드

public setRoutes ( array $routes )
$routes array

setUmask() 공개 메소드

public setUmask ( null | integer $umask )
$umask null | integer

setWebPath() 공개 메소드

public setWebPath ( $path )

setWriteIfChanged() 공개 메소드

public setWriteIfChanged ( boolean $flag )
$flag boolean

프로퍼티 상세

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

List of error types occurring in EVENT_DISPATCH_ERROR that will use this module to render assets.
protected array $acceptableErrors
리턴 array

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

By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBasePath()" Example: /~jdo/
protected string|null $basePath
리턴 string | null

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

By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBaseUrl()" Example: http://example.com/
protected string|null $baseUrl
리턴 string | null

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

Should build assets on request.
protected bool $buildOnRequest
리턴 boolean

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

Is cache enabled.
protected bool $cacheEnabled
리턴 boolean

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

Full path to cache directory.
protected string $cachePath
리턴 string

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

Combine option giving the opportunity not to combine the assets in debug mode.
protected bool $combine
리턴 boolean

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

Map of controllers names and assets configuration.
protected array $controllers
리턴 array

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

Debug option that is passed to Assetic.
protected bool $debug
리턴 boolean

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

Default options.
protected array $default
리턴 array

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

Map of modules names and assets configuration.
protected array $modules
리턴 array

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

Map of strategies that will be choose to setup Assetic\AssetInterface for particular Zend\View\Renderer\RendererInterface
protected array $rendererToStrategy
리턴 array

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

Map of routes names and assets configuration.
protected array $routes
리턴 array

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

Umask
protected null|int $umask
리턴 null | integer

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

Full path to public directory where assets will be generated.
protected string $webPath
리턴 string

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

Asset will be save on disk, only when it's modification time was changed
protected bool $writeIfChanged
리턴 boolean