PHP Interface Sulu\Component\SmartContent\DataProviderPoolInterface

Exibir arquivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
add ( string $alias, Sulu\Component\SmartContent\DataProviderInterface $provider ) Add new DataProvider with given alias.
exists ( string $alias ) : boolean Returns TRUE if DataProvider exists otherwise FALSE.
get ( string $alias ) : Sulu\Component\SmartContent\DataProviderInterface Returns DataProvider with given alias.
getAll ( ) : Sulu\Component\SmartContent\DataProviderInterface[] Returns all registered DataProvider.

Method Details

add() public method

Add new DataProvider with given alias.
public add ( string $alias, Sulu\Component\SmartContent\DataProviderInterface $provider )
$alias string identify the DataProvider
$provider Sulu\Component\SmartContent\DataProviderInterface

exists() public method

Returns TRUE if DataProvider exists otherwise FALSE.
public exists ( string $alias ) : boolean
$alias string identify the DataProvider
return boolean

get() public method

Returns DataProvider with given alias.
public get ( string $alias ) : Sulu\Component\SmartContent\DataProviderInterface
$alias string identify the DataProvider
return Sulu\Component\SmartContent\DataProviderInterface

getAll() public method

Returns all registered DataProvider.
public getAll ( ) : Sulu\Component\SmartContent\DataProviderInterface[]
return Sulu\Component\SmartContent\DataProviderInterface[]