|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Represents a string asset. More...
Inheritance diagram for Assetic\Asset\StringAsset:
Collaboration diagram for Assetic\Asset\StringAsset:Public Member Functions | |
| __construct ($content, $filters=array(), $sourceRoot=null, $sourcePath=null) | |
| Constructor. More... | |
| load (FilterInterface $additionalFilter=null) | |
| Loads the asset into memory and applies load filters. More... | |
| setLastModified ($lastModified) | |
| 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... | |
| 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... | |
| load (FilterInterface $additionalFilter=null) | |
| Loads the asset into memory and applies load filters. 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... | |
| getLastModified () | |
| Returns the time the current asset was last modified. 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 | |
| $string | |
| $lastModified | |
Additional Inherited Members | |
Protected Member Functions inherited from Assetic\Asset\BaseAsset | |
| doLoad ($content, FilterInterface $additionalFilter=null) | |
| Encapsulates asset loading logic. More... | |
Represents a string asset.
Definition at line 21 of file StringAsset.php.
| Assetic\Asset\StringAsset::__construct | ( | $content, | |
$filters = array(), |
|||
$sourceRoot = null, |
|||
$sourcePath = null |
|||
| ) |
Constructor.
| string | $content | The content of the asset |
| array | $filters | Filters for the asset |
| string | $sourceRoot | The source asset root directory |
| string | $sourcePath | The source asset path |
Definition at line 34 of file StringAsset.php.
References Assetic\Asset\BaseAsset\$content, Assetic\Asset\BaseAsset\$filters, Assetic\Asset\BaseAsset\$sourcePath, and Assetic\Asset\BaseAsset\$sourceRoot.
| Assetic\Asset\StringAsset::getLastModified | ( | ) |
Returns the time the current asset was last modified.
Implements Assetic\Asset\AssetInterface.
Definition at line 51 of file StringAsset.php.
References Assetic\Asset\StringAsset\$lastModified.
| Assetic\Asset\StringAsset::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 41 of file StringAsset.php.
References Assetic\Asset\BaseAsset\doLoad().
Here is the call graph for this function:| Assetic\Asset\StringAsset::setLastModified | ( | $lastModified | ) |
Definition at line 46 of file StringAsset.php.
References Assetic\Asset\StringAsset\$lastModified.
|
private |
Definition at line 24 of file StringAsset.php.
Referenced by Assetic\Asset\StringAsset\getLastModified(), and Assetic\Asset\StringAsset\setLastModified().
|
private |
Definition at line 23 of file StringAsset.php.