PHP 클래스 Sulu\Component\SmartContent\Orm\BaseDataProvider

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

보호된 프로퍼티들

프로퍼티 타입 설명
$configuration Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface
$repository Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface

공개 메소드들

메소드 설명
__construct ( Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface $repository, JMS\Serializer\SerializerInterface $serializer )
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 )

보호된 메소드들

메소드 설명
createConfigurationBuilder ( ) : Sulu\Component\SmartContent\Configuration\BuilderInterface Creates a new configuration object.
decorateDataItems ( array $data ) : Sulu\Component\SmartContent\ItemInterface[] Decorates result as data item.
decorateResourceItems ( array $data, string $locale ) : ArrayAccessItem[] Decorates result as resource item.
getOptions ( array $propertyParameter, array $options = [] ) : array Returns additional options for query creation.
getSerializationContext ( ) : JMS\Serializer\SerializationContext Creates serialization context. Can be used to add own groups.
initConfiguration ( $tags, $categories, $limit, $presentAs, $paginated, $sorting ) : Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface Initiate configuration.

비공개 메소드들

메소드 설명
resolveFilters ( array $filters, $locale, $limit = null, $page = 1, $pageSize = null, $options = [] ) Resolves filters.

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface $repository, JMS\Serializer\SerializerInterface $serializer )
$repository Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface
$serializer JMS\Serializer\SerializerInterface

createConfigurationBuilder() 보호된 정적인 메소드

Creates a new configuration object.
protected static createConfigurationBuilder ( ) : Sulu\Component\SmartContent\Configuration\BuilderInterface
리턴 Sulu\Component\SmartContent\Configuration\BuilderInterface

decorateDataItems() 추상적인 보호된 메소드

Decorates result as data item.
abstract protected decorateDataItems ( array $data ) : Sulu\Component\SmartContent\ItemInterface[]
$data array
리턴 Sulu\Component\SmartContent\ItemInterface[]

decorateResourceItems() 보호된 메소드

Decorates result as resource item.
protected decorateResourceItems ( array $data, string $locale ) : ArrayAccessItem[]
$data array
$locale string
리턴 Sulu\Component\SmartContent\ArrayAccessItem[]

getConfiguration() 공개 메소드

public getConfiguration ( )

getDefaultPropertyParameter() 공개 메소드

getOptions() 보호된 메소드

Returns additional options for query creation.
protected getOptions ( array $propertyParameter, array $options = [] ) : array
$propertyParameter array
$options array
리턴 array

getSerializationContext() 보호된 메소드

Creates serialization context. Can be used to add own groups.
protected getSerializationContext ( ) : JMS\Serializer\SerializationContext
리턴 JMS\Serializer\SerializationContext

initConfiguration() 보호된 메소드

Initiate configuration.
사용 중단: use self::createConfigurationBuilder instead
protected initConfiguration ( $tags, $categories, $limit, $presentAs, $paginated, $sorting ) : Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface
리턴 Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface

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

프로퍼티 상세

$configuration 보호되어 있는 프로퍼티

protected ProviderConfigurationInterface,Sulu\Component\SmartContent\Configuration $configuration
리턴 Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface

$repository 보호되어 있는 프로퍼티

protected DataProviderRepositoryInterface,Sulu\Component\SmartContent\Orm $repository
리턴 Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface