PHP Class MiniAsset\Filter\FilterCollection

Inheritance: implements Countabl\Countable
Exibir arquivo Open project: markstory/mini-asset

Protected Properties

Property Type Description
$filters

Public Methods

Method Description
__construct ( array $filters )
count ( ) : integer Get the number of filters in this collection.
filters ( ) : array Get the filters in the collection.
input ( string $file, string $content ) : string Apply all the input filters in sequence to the file and content.
output ( $target, string $content ) : string Apply all the output filters in sequence to the file and content.

Method Details

__construct() public method

public __construct ( array $filters )
$filters array

count() public method

Get the number of filters in this collection.
public count ( ) : integer
return integer

filters() public method

Get the filters in the collection.
public filters ( ) : array
return array

input() public method

Apply all the input filters in sequence to the file and content.
public input ( string $file, string $content ) : string
$file string Filename being processed.
$content string The content of the file.
return string The content with all input filters applied.

output() public method

Apply all the output filters in sequence to the file and content.
public output ( $target, string $content ) : string
$content string The content of the file.
return string The content with all output filters applied.

Property Details

$filters protected_oe property

protected $filters