PHP 클래스 Sulu\Component\Content\Query\ContentQueryBuilder

상속: implements Sulu\Component\Content\Query\ContentQueryBuilderInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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