PHP Interface Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

batchDelete() public méthode

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

delete() public méthode

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

findByIdAndLocale() public méthode

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

findFiltersForUserAndContext() public méthode

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
Résultat Sulu\Bundle\ResourceBundle\Api\Filter[]

getFeaturesForContext() public méthode

Returns the configured features for a context.
public getFeaturesForContext ( $context ) : array | null
$context
Résultat array | null

getFieldDescriptors() public méthode

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

getListFieldDescriptors() public méthode

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

hasContext() public méthode

Checks if the context exists.
public hasContext ( $context ) : boolean
$context
Résultat boolean

isFeatureEnabled() public méthode

Checks if a feature is enabled for a context.
public isFeatureEnabled ( $context, $feature ) : boolean
$context
$feature
Résultat boolean

save() public méthode

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