ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Represents an asset loaded via an HTTP request. More...
Public Member Functions | |
__construct ($sourceUrl, $filters=array(), $ignoreErrors=false, array $vars=array()) | |
Constructor. More... | |
load (FilterInterface $additionalFilter=null) | |
Loads the asset into memory and applies load filters. More... | |
getLastModified () | |
Returns the time the current asset was last modified. More... | |
Public Member Functions inherited from Assetic\Asset\BaseAsset | |
__construct ($filters=array(), $sourceRoot=null, $sourcePath=null, array $vars=array()) | |
Constructor. More... | |
__clone () | |
ensureFilter (FilterInterface $filter) | |
Ensures the current asset includes the supplied filter. More... | |
getFilters () | |
Returns an array of filters currently applied. More... | |
clearFilters () | |
Clears all filters from the current asset. More... | |
dump (FilterInterface $additionalFilter=null) | |
Applies dump filters and returns the asset as a string. More... | |
getContent () | |
Returns the loaded content of the current asset. More... | |
setContent ($content) | |
Sets the content of the current asset. More... | |
getSourceRoot () | |
Returns an absolute path or URL to the source asset's root directory. More... | |
getSourcePath () | |
Returns the relative path for the source asset. More... | |
getSourceDirectory () | |
Returns the asset's source directory. More... | |
getTargetPath () | |
Returns the URL for the current asset. More... | |
setTargetPath ($targetPath) | |
Sets the URL for the current asset. More... | |
getVars () | |
Returns an array of variable names for this asset. More... | |
setValues (array $values) | |
Sets the values for the asset's variables. More... | |
getValues () | |
Returns the current values for this asset. More... | |
Private Attributes | |
$sourceUrl | |
$ignoreErrors | |
Additional Inherited Members | |
Protected Member Functions inherited from Assetic\Asset\BaseAsset | |
doLoad ($content, FilterInterface $additionalFilter=null) | |
Encapsulates asset loading logic. More... | |
Represents an asset loaded via an HTTP request.
Definition at line 22 of file HttpAsset.php.
Assetic\Asset\HttpAsset::__construct | ( | $sourceUrl, | |
$filters = array() , |
|||
$ignoreErrors = false , |
|||
array | $vars = array() |
||
) |
Constructor.
string | $sourceUrl | The source URL |
array | $filters | An array of filters |
Boolean | $ignoreErrors | |
array | $vars |
Definition at line 37 of file HttpAsset.php.
References Assetic\Asset\BaseAsset\$filters, Assetic\Asset\HttpAsset\$ignoreErrors, $path, Assetic\Asset\HttpAsset\$sourceUrl, $url, and Assetic\Asset\BaseAsset\$vars.
Assetic\Asset\HttpAsset::getLastModified | ( | ) |
Returns the time the current asset was last modified.
Implements Assetic\Asset\AssetInterface.
Definition at line 67 of file HttpAsset.php.
Assetic\Asset\HttpAsset::load | ( | FilterInterface | $additionalFilter = null | ) |
Loads the asset into memory and applies load filters.
You may provide an additional filter to apply during load.
FilterInterface | $additionalFilter | An additional filter |
Implements Assetic\Asset\AssetInterface.
Definition at line 54 of file HttpAsset.php.
References Assetic\Asset\BaseAsset\$content, Assetic\Asset\BaseAsset\doLoad(), Assetic\Asset\BaseAsset\getValues(), Assetic\Asset\BaseAsset\getVars(), and Assetic\Util\VarUtils\resolve().
|
private |
Definition at line 25 of file HttpAsset.php.
Referenced by Assetic\Asset\HttpAsset\__construct().
|
private |
Definition at line 24 of file HttpAsset.php.
Referenced by Assetic\Asset\HttpAsset\__construct().