PHP Class MiniAsset\Filter\FilterCollection

Inheritance: implements Countabl\Countable
Afficher le fichier Open project: markstory/mini-asset

Protected Properties

Свойство Type Description
$filters

Méthodes publiques

Méthode 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 méthode

public __construct ( array $filters )
$filters array

count() public méthode

Get the number of filters in this collection.
public count ( ) : integer
Résultat integer

filters() public méthode

Get the filters in the collection.
public filters ( ) : array
Résultat array

input() public méthode

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.
Résultat string The content with all input filters applied.

output() public méthode

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.
Résultat string The content with all output filters applied.

Property Details

$filters protected_oe property

protected $filters