Magrathea PHP 2

AdminFeatureAppConfig extends AdminFeature
in package
implements iAdminFeature

Class for installing Magrathea's Admin

Table of Contents

Interfaces

iAdminFeature

Properties

$featureClassPath  : mixed
$featureIcon  : mixed
$featureId  : string
$featureName  : string
$onlyApp  : bool

Methods

__construct()  : mixed
AddCSS()  : AdminFeature
Add a CSS file to admin
AddJs()  : AdminFeature
Add a JS file to admin
GetMenuItem()  : array<string|int, mixed>
returns the menu item
GetPage()  : mixed
prints index page (default at index.php, located in class path) loads [$featureClass] var with own class to the index page
GetSubpageUrl()  : mixed
HasEditPermission()  : bool
HasPermission()  : bool
Checks if user has permission to see a feature
Import()  : mixed
Index()  : mixed
IsFeatureActive()  : bool
checks if this feature is currently being displayed (for menu highlighting)
List()  : mixed
Migration()  : mixed
SetClassPath()  : mixed
Sets feature class path
View()  : mixed

Properties

$featureClassPath

public mixed $featureClassPath = __DIR__

Methods

__construct()

public __construct([bool $hideSystem = false ]) : mixed
Parameters
$hideSystem : bool = false

GetMenuItem()

returns the menu item

public GetMenuItem() : array<string|int, mixed>
Return values
array<string|int, mixed>

["title", "name", "icon", "link", "type"]

GetPage()

prints index page (default at index.php, located in class path) loads [$featureClass] var with own class to the index page

public GetPage() : mixed

GetSubpageUrl()

public GetSubpageUrl(mixed $subpage[, mixed $params = [] ]) : mixed
Parameters
$subpage : mixed
$params : mixed = []

HasPermission()

Checks if user has permission to see a feature

public HasPermission([mixed $action = null ]) : bool
Parameters
$action : mixed = null
Return values
bool

has it?

IsFeatureActive()

checks if this feature is currently being displayed (for menu highlighting)

public IsFeatureActive() : bool
Return values
bool

SetClassPath()

Sets feature class path

public SetClassPath(mixed $path) : mixed
Parameters
$path : mixed

        
On this page

Search results