CpController
extends Controller
in package
Controller for various ajax actions
Table of Contents
- $blockCache : BlockCacheService
- $blockProviders : BlockProvidersService
- $blocks : BlockService
- $displays : DisplayService
- $fieldDisplayers : FieldDisplayerService
- $fields : FieldsService
- $groups : GroupsService
- $layouts : LayoutService
- $registry : ThemesRegistry
- $viewModes : ViewModeService
- actionAssetsData() : array<string|int, mixed>
- Return assets data for an array of ids
- actionCategoriesData() : array<string|int, mixed>
- Return categories data for an array of ids
- actionEntriesData() : array<string|int, mixed>
- Return entries data for an array of ids
- actionInstall() : array<string|int, mixed>
- (Re)install all layouts
- actionUsersData() : array<string|int, mixed>
- Return users data for an array of ids
- actionViewModes() : array<string|int, mixed>
- Get view modes for a theme and a layout
- afterAction() : mixed
- beforeAction() : bool
- init() : void
Properties
$blockCache
protected
BlockCacheService
$blockCache
$blockProviders
protected
BlockProvidersService
$blockProviders
$blocks
protected
BlockService
$blocks
$displays
protected
DisplayService
$displays
$fieldDisplayers
protected
FieldDisplayerService
$fieldDisplayers
$fields
protected
FieldsService
$fields
$groups
protected
GroupsService
$groups
$layouts
protected
LayoutService
$layouts
$registry
protected
ThemesRegistry
$registry
$viewModes
protected
ViewModeService
$viewModes
Methods
actionAssetsData()
Return assets data for an array of ids
public
actionAssetsData() : array<string|int, mixed>
Return values
array<string|int, mixed> —actionCategoriesData()
Return categories data for an array of ids
public
actionCategoriesData() : array<string|int, mixed>
Return values
array<string|int, mixed> —actionEntriesData()
Return entries data for an array of ids
public
actionEntriesData() : array<string|int, mixed>
Return values
array<string|int, mixed> —actionInstall()
(Re)install all layouts
public
actionInstall() : array<string|int, mixed>
Return values
array<string|int, mixed> —actionUsersData()
Return users data for an array of ids
public
actionUsersData() : array<string|int, mixed>
Return values
array<string|int, mixed> —actionViewModes()
Get view modes for a theme and a layout
public
actionViewModes() : array<string|int, mixed>
Return values
array<string|int, mixed> —afterAction()
public
afterAction(mixed $action, mixed $result) : mixed
Parameters
- $action : mixed
- $result : mixed
Tags
Return values
mixed —beforeAction()
public
beforeAction(mixed $action) : bool
Parameters
- $action : mixed
Tags
Return values
bool —init()
public
init() : void