PHP Class Yosymfony\Spress\Core\ContentManager\Generator\GeneratorManager

Author: Victor Puertas ([email protected])
Afficher le fichier Open project: spress/spress Class Usage Examples

Méthodes publiques

Méthode Description
addGenerator ( string $name, Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface $generator ) Adds a new generator.
clearGenerator ( ) Clears all generators registered.
countGenerator ( ) : integer Counts the generators registered.
getGenerator ( string $name ) : Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface Gets a generator.
hasGenerator ( string $name ) : boolean Checks if a generator exists.
removeGenerator ( string $name ) Removes a generator.
setGenerator ( string $name, Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface $generator ) Sets a generator.

Method Details

addGenerator() public méthode

Adds a new generator.
public addGenerator ( string $name, Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface $generator )
$name string The generator name
$generator Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface

clearGenerator() public méthode

Clears all generators registered.
public clearGenerator ( )

countGenerator() public méthode

Counts the generators registered.
public countGenerator ( ) : integer
Résultat integer

getGenerator() public méthode

Gets a generator.
public getGenerator ( string $name ) : Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface
$name string The generator name
Résultat Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface

hasGenerator() public méthode

Checks if a generator exists.
public hasGenerator ( string $name ) : boolean
$name string The generator name
Résultat boolean

removeGenerator() public méthode

Removes a generator.
public removeGenerator ( string $name )
$name string The generator name

setGenerator() public méthode

Sets a generator.
public setGenerator ( string $name, Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface $generator )
$name string The generator name
$generator Yosymfony\Spress\Core\ContentManager\Generator\GeneratorInterface