A base abstract asset.

The methods load() and getLastModified() are left undefined, although a reusable doLoad() method is available to child classes.

  • October\Rain\Assetic\Asset\AssetInterface

Protected Properties

protected mixed $filters

protected mixed $sourceRoot

protected mixed $sourcePath

protected mixed $sourceDir

protected mixed $targetPath

protected mixed $content

protected mixed $loaded

protected mixed $vars

protected mixed $values

Public Methods

public __clone()

public __clone(): void

public __construct()

public __construct(
    array $filters = [],
    string $sourceRoot = null,
    string $sourcePath = null,
    array $vars = []
): void

public clearFilters()

public clearFilters(): void

public dump()

public dump($additionalFilter = null): void

public ensureFilter()

public ensureFilter($filter): void

public getContent()

public getContent(): void

public getFilters()

public getFilters(): void

public getSourceDirectory()

public getSourceDirectory(): void

public getSourcePath()

public getSourcePath(): void

public getSourceRoot()

public getSourceRoot(): void

public getTargetPath()

public getTargetPath(): void

public getValues()

public getValues(): void

public getVars()

public getVars(): void

public setContent()

public setContent($content): void

public setTargetPath()

public setTargetPath($targetPath): void

public setValues()

public setValues($values): void

Show inherited public methods

Inherited Public Methods

  • getLastModified() - Returns the time the current asset was last modified. (defined in October\Rain\Assetic\Asset\AssetInterface)
  • load() - Loads the asset into memory and applies load filters. (defined in October\Rain\Assetic\Asset\AssetInterface)

Protected Methods

protected doLoad()

protected doLoad(
    string $content,
    FilterInterface $additionalFilter = null
): void

Encapsulates asset loading logic.