Class X2AssetManager
Custom extension of CAssetManager used by the app.
-
CComponent
-
CApplicationComponent
implements
IApplicationComponent
-
CAssetManager
-
X2AssetManager
Methods summary
public
|
#
setBaseUri( string $uri )
Set the baseUri for generating URLs to static assets
Set the baseUri for generating URLs to static assets
Parameters
- $uri
string $uri Base URI for web requests
|
public
|
|
public
|
#
getNextRRAssetDomain( )
Return the next static asset baseUrl in a round-robin fashion
Return the next static asset baseUrl in a round-robin fashion
|
public
|
#
substituteAssetDomain( string $url )
Replace the baseUrl with an asset domain
Replace the baseUrl with an asset domain
Parameters
- $url
string $url Asset URL to substitute
Returns
string Replaced asset URL
|
Methods inherited from CAssetManager
generatePath(),
getBasePath(),
getBaseUrl(),
getPublishedPath(),
getPublishedUrl(),
hash(),
publish(),
setBasePath(),
setBaseUrl()
|
Methods inherited from CApplicationComponent
getIsInitialized(),
init()
|
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
Constants inherited from CAssetManager
DEFAULT_BASEPATH
|
Properties summary
public static
mixed
|
$enableAssetDomains
|
|
|
protected
mixed
|
$_staticAssetUrls
|
|
|
public static
array
|
$skipAssets
|
array(
'form.css',
'x2forms.css',
'main.css',
'layout.css',
'publisher.css',
'fontAwesome/css/font-awesome.css',
) |
#
Blacklist of assets to skip when considering using a static asset domain
Blacklist of assets to skip when considering using a static asset domain
|
Properties inherited from CAssetManager
$excludeFiles,
$forceCopy,
$linkAssets,
$newDirMode,
$newFileMode
|
Properties inherited from CApplicationComponent
$behaviors
|
Magic properties inherited from CAssetManager
$basePath,
$baseUrl
|
Magic properties inherited from CApplicationComponent
$isInitialized
|