PHP Class Sulu\Component\Content\Extension\ExtensionManager

Inheritance: implements Sulu\Component\Content\Extension\ExtensionManagerInterface
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
addExtension ( Sulu\Component\Content\Extension\ExtensionInterface $extension, $structureType = 'all' )
getExtension ( $structureType, $name )
getExtensions ( $structureType )
hasExtension ( $structureType, $name ) TODO: This is not efficient. The extensions should be indexed by structureType.

Method Details

addExtension() public method

TODO: Using "all" here is not a good idea. This means that nobody can create a structureType called "all"
public addExtension ( Sulu\Component\Content\Extension\ExtensionInterface $extension, $structureType = 'all' )
$extension Sulu\Component\Content\Extension\ExtensionInterface

getExtension() public method

public getExtension ( $structureType, $name )

getExtensions() public method

public getExtensions ( $structureType )

hasExtension() public method

public hasExtension ( $structureType, $name )