PHP 클래스 Sulu\Component\Content\SmartContent\ContentDataProvider

상속: implements Sulu\Component\SmartContent\DataProviderInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

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 getConfiguration ( )

getDefaultPropertyParameter() 공개 메소드

resolveDataItems() 공개 메소드

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

resolveDatasource() 공개 메소드

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

resolveResourceItems() 공개 메소드

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