PHP 클래스 FluentFilteredExtension

저자: Damian Mooyman ([email protected])
상속: extends DataExtension
파일 보기 프로젝트 열기: tractorcow/silverstripe-fluent

공개 메소드들

메소드 설명
augmentDataQueryCreation ( SQLQuery $query, DataQuery $dataQuery ) Amend freshly created DataQuery objects with the "should filter admin?" option, current locale and frontend status
augmentSQL ( SQLQuery &$query, DataQuery &$dataQuery = null )
canViewInLocale ( string | null $locale = null ) : boolean Determine if this object is visible (or excluded) in the specified (or current) locale
getFilteredLocales ( boolean $visible = true ) : array Gets the list of locales this items is filtered against
get_extra_config ( $class, $extension, $args )
setFilteredLocales ( $locales ) Set the filter of locales to the specified locale, or array of locales
updateCMSFields ( FieldList $fields )
updateStatusFlags ( array &$flags ) Add 'Hidden' flag to the SiteTree object if the page is not present in this locale

메소드 상세

augmentDataQueryCreation() 공개 메소드

Amend freshly created DataQuery objects with the "should filter admin?" option, current locale and frontend status
public augmentDataQueryCreation ( SQLQuery $query, DataQuery $dataQuery )
$query SQLQuery
$dataQuery DataQuery

augmentSQL() 공개 메소드

public augmentSQL ( SQLQuery &$query, DataQuery &$dataQuery = null )
$query SQLQuery
$dataQuery DataQuery

canViewInLocale() 공개 메소드

Determine if this object is visible (or excluded) in the specified (or current) locale
public canViewInLocale ( string | null $locale = null ) : boolean
$locale string | null Locale to check against. If null, will use the current locale.
리턴 boolean True if the object is visible in the specified locale

getFilteredLocales() 공개 메소드

Gets the list of locales this items is filtered against
public getFilteredLocales ( boolean $visible = true ) : array
$visible boolean Set to false to get excluded instead of included locales
리턴 array List of locales

get_extra_config() 공개 정적인 메소드

public static get_extra_config ( $class, $extension, $args )

setFilteredLocales() 공개 메소드

Set the filter of locales to the specified locale, or array of locales
public setFilteredLocales ( $locales )

updateCMSFields() 공개 메소드

public updateCMSFields ( FieldList $fields )
$fields FieldList

updateStatusFlags() 공개 메소드

Add 'Hidden' flag to the SiteTree object if the page is not present in this locale
public updateStatusFlags ( array &$flags )
$flags array