Метод | Описание | |
---|---|---|
batchDelete ( $ids ) | Deletes multiple filters at once. | |
delete ( $id ) | Removes a filter with the given id. | |
findByIdAndLocale ( integer $id, string $locale ) : |
Finds a filter by id and locale. | |
findFiltersForUserAndContext ( string $context, $userId, string $locale ) : |
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 ) : |
Returns an array of field descriptors. | |
getListFieldDescriptors ( $locale ) : |
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 ) : |
Saves the given filter. |
public findByIdAndLocale ( integer $id, string $locale ) : |
||
$id | integer | |
$locale | string | |
Результат |
public findFiltersForUserAndContext ( string $context, $userId, string $locale ) : |
||
$context | string | |
$userId | ||
$locale | string | |
Результат |
public getFeaturesForContext ( $context ) : array | null | ||
$context | ||
Результат | array | null |
public getFieldDescriptors ( $locale ) : |
||
$locale | ||
Результат |
public getListFieldDescriptors ( $locale ) : |
||
$locale | ||
Результат |
public hasContext ( $context ) : boolean | ||
$context | ||
Результат | boolean |
public isFeatureEnabled ( $context, $feature ) : boolean | ||
$context | ||
$feature | ||
Результат | boolean |