Magrathea PHP 2

AdminUrls extends Singleton
in package

Class for managing Magrathea's Admin

Table of Contents

Properties

$instance  : array<string|int, mixed>|null

Methods

__wakeup()  : mixed
FileViewUrl()  : string
Gets a file view url
GetConfigUrl()  : mixed
GetFeatureActionUrl()  : string
Gets an url for a action's feature
GetFeatureUrl()  : string
Gets an url for a feature
GetLogoutUrl()  : mixed
GetPageUrl()  : mixed
Gets the url for admin page
Instance()  : static|Singleton
MockClass()  : static|Singleton
SetInstance()  : mixed
__clone()  : mixed
__construct()  : mixed

Properties

$instance

protected static array<string|int, mixed>|null $instance = []

Methods

FileViewUrl()

Gets a file view url

public FileViewUrl([string $file = null ]) : string
Parameters
$file : string = null

file name

Return values
string

file view url

GetConfigUrl()

public GetConfigUrl([mixed $env = "" ]) : mixed
Parameters
$env : mixed = ""

GetFeatureActionUrl()

Gets an url for a action's feature

public GetFeatureActionUrl(string $feature[, string $action = null ][, array<string|int, mixed> $extraParams = [] ]) : string
Parameters
$feature : string

feature name

$action : string = null

action

$extraParams : array<string|int, mixed> = []

other params

Return values
string

url

GetFeatureUrl()

Gets an url for a feature

public GetFeatureUrl(string $feature[, string $action = null ][, array<string|int, mixed> $extraParams = [] ]) : string
Parameters
$feature : string

feature name

$action : string = null

action

$extraParams : array<string|int, mixed> = []

other params

Return values
string

url

GetLogoutUrl()

public GetLogoutUrl() : mixed

GetPageUrl()

Gets the url for admin page

public GetPageUrl(string $page[, string $action = null ][, array<string|int, mixed> $extraParams = [] ]) : mixed
Parameters
$page : string

page

$action : string = null

action

$extraParams : array<string|int, mixed> = []

extra params

SetInstance()

public SetInstance(mixed $inst) : mixed
Parameters
$inst : mixed

__construct()

private final __construct() : mixed

        
On this page

Search results