PHP 인터페이스 Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface

파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
batchDelete ( $ids ) Deletes multiple filters at once.
delete ( $id ) Removes a filter with the given id.
findByIdAndLocale ( integer $id, string $locale ) : Filter Finds a filter by id and locale.
findFiltersForUserAndContext ( string $context, $userId, string $locale ) : Filter[] Finds all filters filtered by context and user and for the given locale.
getFeaturesForContext ( $context ) : array | null Returns the configured features for a context.
getFieldDescriptors ( $locale ) : DoctrineFieldDescriptor[] Returns an array of field descriptors.
getListFieldDescriptors ( $locale ) : DoctrineFieldDescriptor[] Returns an array of field descriptors specific for the list.
hasContext ( $context ) : boolean Checks if the context exists.
isFeatureEnabled ( $context, $feature ) : boolean Checks if a feature is enabled for a context.
save ( array $data, string $locale, integer $userId, integer $id = null ) : Filter Saves the given filter.

메소드 상세

batchDelete() 공개 메소드

Deletes multiple filters at once.
public batchDelete ( $ids )
$ids

delete() 공개 메소드

Removes a filter with the given id.
public delete ( $id )
$id

findByIdAndLocale() 공개 메소드

Finds a filter by id and locale.
public findByIdAndLocale ( integer $id, string $locale ) : Filter
$id integer
$locale string
리턴 Sulu\Bundle\ResourceBundle\Api\Filter

findFiltersForUserAndContext() 공개 메소드

Finds all filters filtered by context and user and for the given locale.
public findFiltersForUserAndContext ( string $context, $userId, string $locale ) : Filter[]
$context string
$userId
$locale string
리턴 Sulu\Bundle\ResourceBundle\Api\Filter[]

getFeaturesForContext() 공개 메소드

Returns the configured features for a context.
public getFeaturesForContext ( $context ) : array | null
$context
리턴 array | null

getFieldDescriptors() 공개 메소드

Returns an array of field descriptors.
public getFieldDescriptors ( $locale ) : DoctrineFieldDescriptor[]
$locale
리턴 Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor\DoctrineFieldDescriptor[]

getListFieldDescriptors() 공개 메소드

Returns an array of field descriptors specific for the list.
public getListFieldDescriptors ( $locale ) : DoctrineFieldDescriptor[]
$locale
리턴 Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor\DoctrineFieldDescriptor[]

hasContext() 공개 메소드

Checks if the context exists.
public hasContext ( $context ) : boolean
$context
리턴 boolean

isFeatureEnabled() 공개 메소드

Checks if a feature is enabled for a context.
public isFeatureEnabled ( $context, $feature ) : boolean
$context
$feature
리턴 boolean

save() 공개 메소드

Saves the given filter.
public save ( array $data, string $locale, integer $userId, integer $id = null ) : Filter
$data array
$locale string
$userId integer
$id integer
리턴 Sulu\Bundle\ResourceBundle\Api\Filter