MetaFox

MobileSetting extends MobileSetting
in package

Class WebSetting.

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

$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

addActions()

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
$this

setIsAdminCP()

public setIsAdminCP([bool $isAdminCP = true ]) : self
Parameters
$isAdminCP : bool = true
Return values
self

toArray()

public toArray() : array<string, array<string, mixed>>
Return values
array<string, array<string, mixed>>

        
On this page

Search results