PHP Интерфейс Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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