PHP Class Sulu\Component\Content\SmartContent\ContentDataProvider

Inheritance: implements Sulu\Component\SmartContent\DataProviderInterface
Mostra file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\Content\Query\ContentQueryBuilderInterface $contentQueryBuilder, Sulu\Component\Content\Query\ContentQueryExecutorInterface $contentQueryExecutor, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory, $showDrafts )
getConfiguration ( )
getDefaultPropertyParameter ( )
resolveDataItems ( array $filters, array $propertyParameter, array $options = [], $limit = null, $page = 1, $pageSize = null )
resolveDatasource ( $datasource, array $propertyParameter, array $options )
resolveResourceItems ( array $filters, array $propertyParameter, array $options = [], $limit = null, $page = 1, $pageSize = null )

Private Methods

Method Description
decorateDataItems ( array $data, string $locale ) : ContentDataItem[] Decorates result with item class.
decorateResourceItems ( array $data, string $locale ) : ArrayAccessItem[] Decorates result with item class.
getResource ( string $uuid, string $locale ) : object Returns Proxy Document for uuid.
initConfiguration ( ) : Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface Initiate configuration.
load ( array $options, integer $limit ) : array Load data.
loadPaginated ( array $options, integer $limit, integer $page, integer $pageSize ) : array Load paginated data.
resolveFilters ( array $filters, array $propertyParameter, array $options = [], $limit = null, $page = 1, $pageSize = null ) Resolves filters.

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Query\ContentQueryBuilderInterface $contentQueryBuilder, Sulu\Component\Content\Query\ContentQueryExecutorInterface $contentQueryExecutor, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory, $showDrafts )
$contentQueryBuilder Sulu\Component\Content\Query\ContentQueryBuilderInterface
$contentQueryExecutor Sulu\Component\Content\Query\ContentQueryExecutorInterface
$documentManager Sulu\Component\DocumentManager\DocumentManagerInterface
$proxyFactory ProxyManager\Factory\LazyLoadingValueHolderFactory

getConfiguration() public method

public getConfiguration ( )

getDefaultPropertyParameter() public method

resolveDataItems() public method

public resolveDataItems ( array $filters, array $propertyParameter, array $options = [], $limit = null, $page = 1, $pageSize = null )
$filters array
$propertyParameter array
$options array

resolveDatasource() public method

public resolveDatasource ( $datasource, array $propertyParameter, array $options )
$propertyParameter array
$options array

resolveResourceItems() public method

public resolveResourceItems ( array $filters, array $propertyParameter, array $options = [], $limit = null, $page = 1, $pageSize = null )
$filters array
$propertyParameter array
$options array