AssetManager
class AssetManager implements DispatcherAwareInterface (View source)
The AssetManager class.
Traits
Properties
string | $path | Property path. | |
string | $root | Property root. |
Methods
AssetManager constructor.
addStyle
addScript
internalStyle
internalStyle
renderStyles
renderStyles
renderInternalStyles
renderInternalStyles
getVersion
Method to set property version
Method to get property Styles
Method to set property styles
Method to get property Scripts
Method to set property scripts
Method to get property InternalStyles
Method to set property internalStyles
Method to get property InternalScripts
Method to set property internalScripts
alias
resolveAlias
Method to set property indents
Method to get property Indents
normalizeUri
addBase
Method to get property Template
__call
Internal method to get a JavaScript object notation string from an array
Method to get property Path
Method to get property Root
Method to get property AssetFolder
Method to set property uri
__get
Details
at line line 129
__construct(Config $config, UriData $uri, DispatcherInterface $dispatcher)
AssetManager constructor.
at line line 147
AssetManager
addStyle(string $url, string $version = null, array $attribs = array())
addStyle
at line line 174
AssetManager
addScript(string $url, string $version = null, array $attribs = array())
addScript
at line line 199
AssetManager
internalStyle(string $content)
internalStyle
at line line 213
AssetManager
internalScript(string $content)
internalStyle
at line line 227
string
renderStyles(bool $withInternal = false)
renderStyles
at line line 269
string
renderScripts(bool $withInternal = false)
renderStyles
at line line 308
string
renderInternalStyles()
renderInternalStyles
at line line 318
string
renderInternalScripts()
renderInternalStyles
at line line 328
string
getVersion()
getVersion
at line line 431
AssetManager
setVersion(string $version)
Method to set property version
at line line 443
array
getStyles()
Method to get property Styles
at line line 455
AssetManager
setStyles(array $styles)
Method to set property styles
at line line 467
array
getScripts()
Method to get property Scripts
at line line 479
AssetManager
setScripts(array $scripts)
Method to set property scripts
at line line 491
array
getInternalStyles()
Method to get property InternalStyles
at line line 503
AssetManager
setInternalStyles(array $internalStyles)
Method to set property internalStyles
at line line 515
array
getInternalScripts()
Method to get property InternalScripts
at line line 527
AssetManager
setInternalScripts(array $internalScripts)
Method to set property internalScripts
at line line 542
AssetManager
alias(string $target, string $alias)
alias
at line line 558
string
resolveAlias(string $uri)
resolveAlias
at line line 577
AssetManager
setIndents(string $indents)
Method to set property indents
at line line 589
string
getIndents()
Method to get property Indents
at line line 665
array
normalizeUri(string $uri, string $assetFile = null, string $assetMinFile = null)
normalizeUri
at line line 691
string
addBase(string $uri, string $path = 'path')
addBase
at line line 706
AssetTemplate
getTemplate()
Method to get property Template
at line line 723
AssetManager
setTemplate(AssetTemplate $template)
Method to set property template
at line line 738
mixed
__call(string $name, array $args)
__call
at line line 770
static string
getJSObject(mixed $data, bool $quoteKey = false)
Internal method to get a JavaScript object notation string from an array
at line line 840
string
path(string $uri = null)
Method to get property Path
at line line 857
string
root(string $uri = null)
Method to get property Root
at line line 872
string
getAssetFolder()
Method to get property AssetFolder
at line line 884
AssetManager
setUriData(UriData $uri)
Method to set property uri
at line line 898
mixed
__get(string $name)
__get