WebSetting
extends WebSetting
in package
-------------------------------------------------------------------------- Album Web Resource Setting -------------------------------------------------------------------------- stub: /packages/resources/resource_setting.stub Add this class name to resources config gateway.
Table of Contents
Properties
- $actions : array<string, ActionItem>
- $appName : string|null
- $isAdminCP : bool
- $resourceName : string|null
Methods
- __construct() : mixed
- add() : ActionItem
- Add new column by field.
- addActions() : void
- addEditPageUrl() : $this
- Edit page url pattern.
- setIsAdminCP() : self
- toArray() : array<string, array<string, mixed>>
- initialize() : void
Properties
$actions
protected
array<string, ActionItem>
$actions
= []
$appName
protected
string|null
$appName
$isAdminCP
protected
bool
$isAdminCP
= true
$resourceName
protected
string|null
$resourceName
Methods
__construct()
public
__construct([string|null $appName = null ][, string|null $resourceName = null ]) : mixed
Parameters
- $appName : string|null = null
- $resourceName : string|null = null
add()
Add new column by field.
public
add(string $name) : ActionItem
Parameters
- $name : string
Return values
ActionItemaddActions()
public
addActions([array<string|int, mixed> $only = [] ]) : void
Parameters
- $only : array<string|int, mixed> = []
addEditPageUrl()
Edit page url pattern.
public
addEditPageUrl([string $name = 'links.editItem' ]) : $this
etc: $actions->addEditPageUrl('links.editItem');
Note: in ItemResource add attributes 'links.editItem'
Parameters
- $name : string = 'links.editItem'
Return values
$thissetIsAdminCP()
public
setIsAdminCP([bool $isAdminCP = true ]) : self
Parameters
- $isAdminCP : bool = true
Return values
selftoArray()
public
toArray() : array<string, array<string, mixed>>
Return values
array<string, array<string, mixed>>initialize()
protected
initialize() : void