October\Rain\Assetic\Asset\StringAsset

Extends:

Implements:

  • October\Rain\Assetic\Asset\AssetInterface

Represents a string asset.

Public methods

public void __construct(string $content, array $filters=array(), string $sourceRoot=NULL, string $sourcePath=NULL)

Constructor.

Parameters
  • 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

public void getLastModified()

Returns the time the current asset was last modified.

public void load($additionalFilter=NULL)

Loads the asset into memory and applies load filters.

You may provide an additional filter to apply during load.

Parameters
  • $additionalFilter

public void setLastModified($lastModified)
Parameters
  • $lastModified

Show inherited public methods

Inherited public methods

Protected methods

Show inherited protected methods

Inherited protected methods