XG Proyect

AdministrationLib
in package

AdministrationLib class

Table of Contents

adminLogin()  : void
adminLogin
authorization()  : array<string|int, mixed>
authorization
checkSession()  : void
checkSession
closeSession()  : bool
closeSession
getTemplate()  : Template
Return a new instance of Template
haveAccess()  : void
haveAccess
installDirExists()  : bool
installDirExists
noAccessMessage()  : void
noAccessMessage
saveMessage()  : string
saveMessage
showPopUp()  : string
showPopUp
updateRequired()  : void
Check if an update is required
isSessionSet()  : bool
isSessionSet

Methods

adminLogin()

adminLogin

public static adminLogin(int $admin_id[, string $password = '' ]) : void
Parameters
$admin_id : int

Admin ID

$password : string = ''

Password

Return values
void

authorization()

authorization

public static authorization(string $module, int $user_level) : array<string|int, mixed>
Parameters
$module : string
$user_level : int

User level

Return values
array<string|int, mixed>

checkSession()

checkSession

public static checkSession() : void
Return values
void

closeSession()

closeSession

public static closeSession() : bool
Return values
bool

haveAccess()

haveAccess

public static haveAccess(int $user_level) : void
Parameters
$user_level : int

User level

Return values
void

installDirExists()

installDirExists

public static installDirExists() : bool
Return values
bool

noAccessMessage()

noAccessMessage

public static noAccessMessage([string $mes = '' ]) : void
Parameters
$mes : string = ''

Message

Return values
void

saveMessage()

saveMessage

public static saveMessage(string $result, string $message[, mixed $dismissible = true ]) : string
Parameters
$result : string

Result

$message : string

Message

$dismissible : mixed = true
Return values
string

showPopUp()

showPopUp

public static showPopUp(string $message) : string
Parameters
$message : string

Message

Return values
string

updateRequired()

Check if an update is required

public static updateRequired() : void
Return values
void

isSessionSet()

isSessionSet

private static isSessionSet() : bool
Return values
bool

Search results