October\Rain\Assetic\Factory\Resource\DirectoryResource

Implements:

  • October\Rain\Assetic\Factory\Resource\IteratorResourceInterface
  • Traversable
  • IteratorAggregate
  • October\Rain\Assetic\Factory\Resource\ResourceInterface

A resource is something formulae can be loaded from.

Public methods

public void __construct(string $path, string $pattern=NULL)

Constructor.

Parameters
  • string $path - A directory path
  • string $pattern - A filename pattern

public void __toString()

public void getContent()

Returns the combined content of all inner resources.

public void getIterator()

public void isFresh($timestamp)
Parameters
  • $timestamp

Protected methods

protected void getInnerIterator()