Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
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. |
public __construct ( Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface $repository, JMS\Serializer\SerializerInterface $serializer ) | ||
$repository | Sulu\Component\SmartContent\Orm\DataProviderRepositoryInterface | |
$serializer | JMS\Serializer\SerializerInterface |
protected static createConfigurationBuilder ( ) : Sulu\Component\SmartContent\Configuration\BuilderInterface | ||
Результат | Sulu\Component\SmartContent\Configuration\BuilderInterface |
abstract protected decorateDataItems ( array $data ) : Sulu\Component\SmartContent\ItemInterface[] | ||
$data | array | |
Результат | Sulu\Component\SmartContent\ItemInterface[] |
protected decorateResourceItems ( array $data, string $locale ) : |
||
$data | array | |
$locale | string | |
Результат |
protected getSerializationContext ( ) : JMS\Serializer\SerializationContext | ||
Результат | JMS\Serializer\SerializationContext |
protected initConfiguration ( $tags, $categories, $limit, $presentAs, $paginated, $sorting ) : Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface | ||
Результат | Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface |
public resolveDatasource ( $datasource, array $propertyParameter, array $options ) | ||
$propertyParameter | array | |
$options | array |
protected ProviderConfigurationInterface,Sulu\Component\SmartContent\Configuration $configuration | ||
Результат | Sulu\Component\SmartContent\Configuration\ProviderConfigurationInterface |