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

Author: Victor Puertas ([email protected])
Mostra file Open project: spress/spress Class Usage Examples

Public Methods

Method 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 method

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 method

Clears all generators registered.
public clearGenerator ( )

countGenerator() public method

Counts the generators registered.
public countGenerator ( ) : integer
return integer

getGenerator() public method

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

hasGenerator() public method

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

removeGenerator() public method

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

setGenerator() public method

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