October\Rain\Assetic\Asset\FileAsset

Extends:

Implements:

  • October\Rain\Assetic\Asset\AssetInterface

Represents an asset loaded from a file.

Public methods

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

Constructor.

Parameters
  • string $source - An absolute path
  • array $filters - An array of filters
  • string $sourceRoot - The source asset root directory
  • string $sourcePath - The source asset path
  • array $vars

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

Show inherited public methods

Inherited public methods

Protected methods

Show inherited protected methods

Inherited protected methods