PHP Class Sulu\Component\Content\Query\ContentQueryBuilder

Inheritance: implements Sulu\Component\Content\Query\ContentQueryBuilderInterface
Mostrar archivo Open project: sulu/sulu Class Usage Examples

Protected Properties

Property 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

Public Methods

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

Protected Methods

Method 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

Method 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 method

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 method

public build ( $webspaceKey, $locales )

buildOrder() protected method

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

buildSelect() abstract protected method

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

buildSelector() protected method

Returns single select statement.
protected buildSelector ( $name )

buildWhere() abstract protected method

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

getPropertyName() protected method

Returns translated property name.
protected getPropertyName ( $property )

getPublished() public method

public getPublished ( )

getTranslatedProperty() protected method

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

setLocale() protected method

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

Property Details

$excerpt protected_oe property

Load Excerpt data.
protected bool $excerpt
return boolean

$extensionManager protected_oe property

protected ExtensionManagerInterface,Sulu\Component\Content\Extension $extensionManager
return Sulu\Component\Content\Extension\ExtensionManagerInterface

$languageNamespace protected_oe property

protected string $languageNamespace
return string

$properties protected_oe property

protected string[] $properties
return string[]

$published protected_oe property

Only published content.
protected bool $published
return boolean

$structureManager protected_oe property

protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager
return Sulu\Component\Content\Compat\StructureManagerInterface