PHP Class Sulu\Component\Content\SmartContent\QueryBuilder

Inheritance: extends Sulu\Component\Content\Query\ContentQueryBuilder
Show file Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$excerpt boolean disable automatic excerpt loading.

Public Methods

Method Description
__construct ( Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Sulu\Component\PHPCR\SessionManager\SessionManagerInterface $sessionManager, $languageNamespace )
init ( array $options )

Protected Methods

Method Description
buildOrder ( $webspaceKey, $locale )
buildPageSelector ( ) build select for uuids.
buildSelect ( $webspaceKey, $locale, &$additionalFields )
buildWhere ( $webspaceKey, $locale )

Private Methods

Method Description
buildCategoriesWhere ( $categories, $operator, $languageCode ) build categories where clauses.
buildDatasourceWhere ( ) build datasource where clause.
buildExtensionSelect ( $alias, $extension, $propertyName, $locale, &$additionalFields ) build select for extension property.
buildPageExclude ( ) build sql for exluded Pages.
buildPropertiesSelect ( $locale, &$additionalFields ) build select for properties.
buildPropertySelect ( $alias, $propertyName, $locale, &$additionalFields ) build select for single property.
buildTagsWhere ( $tags, $operator, $languageCode ) build tags where clauses.
getConfig ( string $name, mixed $default = null ) : mixed returns config value.
hasConfig ( string $name ) : boolean checks if config has given config name.

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Sulu\Component\PHPCR\SessionManager\SessionManagerInterface $sessionManager, $languageNamespace )
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface
$sessionManager Sulu\Component\PHPCR\SessionManager\SessionManagerInterface

buildOrder() protected method

protected buildOrder ( $webspaceKey, $locale )

buildPageSelector() protected method

build select for uuids.
protected buildPageSelector ( )

buildSelect() protected method

protected buildSelect ( $webspaceKey, $locale, &$additionalFields )

buildWhere() protected method

protected buildWhere ( $webspaceKey, $locale )

init() public method

public init ( array $options )
$options array

Property Details

$excerpt protected property

disable automatic excerpt loading.
protected bool $excerpt
return boolean