PHP Класс Sulu\Component\Content\Query\ContentQueryBuilder

Наследование: implements Sulu\Component\Content\Query\ContentQueryBuilderInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$excerpt boolean Load Excerpt data.
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$languageNamespace string
$properties string[]
$published boolean Only published content.
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface

Открытые методы

Метод Описание
__construct ( Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, $languageNamespace )
build ( $webspaceKey, $locales )
getPublished ( )

Защищенные методы

Метод Описание
buildOrder ( $webspaceKey, $locale ) Returns custom order statement.
buildSelect ( $webspaceKey, $locale, &$additionalFields ) Returns custom where statement.
buildSelector ( $name ) Returns single select statement.
buildWhere ( $webspaceKey, $locale ) Returns custom select statement.
getPropertyName ( $property ) Returns translated property name.
getTranslatedProperty ( Sulu\Component\Content\Compat\PropertyInterface $property, $locale ) Returns a translated property.
setLocale ( string $locale ) Configures translated properties to given locale.

Приватные методы

Метод Описание
buildSelectForStructure ( $locale, Sulu\Component\Content\Compat\StructureInterface $structure, &$names ) Returns select of a single structure with title and url selector.
buildSelectForStructures ( $locale, $structures, &$names ) Returns select statement with all url and title properties.
buildSelectorForExcerpt ( $locale, &$additionalFields ) Returns a select statement for excerpt data.

Описание методов

__construct() публичный Метод

public __construct ( Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, $languageNamespace )
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface

build() публичный Метод

public build ( $webspaceKey, $locales )

buildOrder() защищенный Метод

Returns custom order statement.
protected buildOrder ( $webspaceKey, $locale )

buildSelect() абстрактный защищенный Метод

Returns custom where statement.
abstract protected buildSelect ( $webspaceKey, $locale, &$additionalFields )

buildSelector() защищенный Метод

Returns single select statement.
protected buildSelector ( $name )

buildWhere() абстрактный защищенный Метод

Returns custom select statement.
abstract protected buildWhere ( $webspaceKey, $locale )

getPropertyName() защищенный Метод

Returns translated property name.
protected getPropertyName ( $property )

getPublished() публичный Метод

public getPublished ( )

getTranslatedProperty() защищенный Метод

Returns a translated property.
protected getTranslatedProperty ( Sulu\Component\Content\Compat\PropertyInterface $property, $locale )
$property Sulu\Component\Content\Compat\PropertyInterface

setLocale() защищенный Метод

Configures translated properties to given locale.
protected setLocale ( string $locale )
$locale string

Описание свойств

$excerpt защищенное свойство

Load Excerpt data.
protected bool $excerpt
Результат boolean

$extensionManager защищенное свойство

protected ExtensionManagerInterface,Sulu\Component\Content\Extension $extensionManager
Результат Sulu\Component\Content\Extension\ExtensionManagerInterface

$languageNamespace защищенное свойство

protected string $languageNamespace
Результат string

$properties защищенное свойство

protected string[] $properties
Результат string[]

$published защищенное свойство

Only published content.
protected bool $published
Результат boolean

$structureManager защищенное свойство

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
Результат Sulu\Component\Content\Compat\StructureManagerInterface