PHP Class Sulu\Component\Content\Query\ContentQueryBuilder

Inheritance: implements Sulu\Component\Content\Query\ContentQueryBuilderInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__construct ( Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, $languageNamespace )
build ( $webspaceKey, $locales )
getPublished ( )

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

__construct() public méthode

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 méthode

public build ( $webspaceKey, $locales )

buildOrder() protected méthode

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

buildSelect() abstract protected méthode

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

buildSelector() protected méthode

Returns single select statement.
protected buildSelector ( $name )

buildWhere() abstract protected méthode

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

getPropertyName() protected méthode

Returns translated property name.
protected getPropertyName ( $property )

getPublished() public méthode

public getPublished ( )

getTranslatedProperty() protected méthode

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

setLocale() protected méthode

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

Property Details

$excerpt protected_oe property

Load Excerpt data.
protected bool $excerpt
Résultat boolean

$extensionManager protected_oe property

protected ExtensionManagerInterface,Sulu\Component\Content\Extension $extensionManager
Résultat Sulu\Component\Content\Extension\ExtensionManagerInterface

$languageNamespace protected_oe property

protected string $languageNamespace
Résultat string

$properties protected_oe property

protected string[] $properties
Résultat string[]

$published protected_oe property

Only published content.
protected bool $published
Résultat boolean

$structureManager protected_oe property

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
Résultat Sulu\Component\Content\Compat\StructureManagerInterface