PHP Interface Sulu\Component\SmartContent\DataProviderPoolInterface

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

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

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

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

get() public méthode

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

getAll() public méthode

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