RecentProvider extends BaseProvider uses ContextCustomer
Table of Contents
Methods
- __construct() : mixed
- doSearch() : void
- fillDialog() : void
- getChildren() : void
- getContext() : Context
- Returns the local or global context for the action.
- getItems() : array<string|int, Item>
- getOption() : mixed
- getOptions() : array<string|int, mixed>
- getPreselectedItems() : array<string|int, Item>
- getSelectedItems() : array<string|int, Item>
- handleBeforeItemSave() : void
- isAvailable() : bool
- setContext() : self
- Sets new context for operations.
- setContextUser() : self
- withContext() : static
- Provides local context for the action.
- withContextUser() : static
- Provides local context for the action.
Methods
__construct()
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
doSearch()
public
doSearch(SearchQuery $searchQuery, Dialog $dialog) : void
Parameters
- $searchQuery : SearchQuery
- $dialog : Dialog
fillDialog()
public
fillDialog(Dialog $dialog) : void
Parameters
- $dialog : Dialog
getChildren()
public
getChildren(Item $parentItem, Dialog $dialog) : void
Parameters
getContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextgetItems()
public
getItems(array<string|int, mixed> $ids) : array<string|int, Item>
Parameters
- $ids : array<string|int, mixed>
Return values
array<string|int, Item>getOption()
public
getOption(string $option[, mixed $defaultValue = null ]) : mixed
Parameters
- $option : string
- $defaultValue : mixed = null
getOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getPreselectedItems()
public
getPreselectedItems(array<string|int, mixed> $ids) : array<string|int, Item>
Parameters
- $ids : array<string|int, mixed>
Return values
array<string|int, Item>getSelectedItems()
public
getSelectedItems(array<string|int, mixed> $ids) : array<string|int, Item>
Parameters
- $ids : array<string|int, mixed>
Tags
Return values
array<string|int, Item>handleBeforeItemSave()
public
handleBeforeItemSave(Item $item) : void
Parameters
- $item : Item
isAvailable()
public
isAvailable() : bool
Return values
boolsetContext()
Sets new context for operations.
public
setContext(Context|null $context) : self
Parameters
- $context : Context|null
Return values
selfsetContextUser()
public
setContextUser(mixed $user) : self
Parameters
- $user : mixed
Return values
selfwithContext()
Provides local context for the action.
public
withContext(Context|null $context) : static
Parameters
- $context : Context|null
Return values
staticwithContextUser()
Provides local context for the action.
public
withContextUser(int|User|User $user) : static
Parameters
- $user : int|User|User