Magrathea PHP 2

Install
in package

Class for installing Magrathea's Admin

Table of Contents

Properties

$adminFileName  : mixed
$appPath  : mixed

Methods

CheckIfAdminFileExists()  : bool
Checks if admin.php fil exists
CheckIfDBInstalled()  : bool
Checks if AdminConfig exists - therefore Admin is installed
CreateAdminEntranceFile()  : bool
Checks if admin file exists
CreateFirstUser()  : AdminUser
GetAdminCode()  : mixed
getAdminFileEntrance()  : string
Gets the path for the admin file
InstallDatabase()  : mixed
Load()  : Install
LogUserCreated()  : AdminLog
SetBasicConfigs()  : void

Properties

$adminFileName

public mixed $adminFileName = "magrathea.php"

Methods

CheckIfAdminFileExists()

Checks if admin.php fil exists

public CheckIfAdminFileExists() : bool
Return values
bool

it does exists

CheckIfDBInstalled()

Checks if AdminConfig exists - therefore Admin is installed

public CheckIfDBInstalled() : bool
Return values
bool

true if is installed

CreateAdminEntranceFile()

Checks if admin file exists

public CreateAdminEntranceFile() : bool
Return values
bool

true if it does exists

CreateFirstUser()

public CreateFirstUser(mixed $username, mixed $password) : AdminUser
Parameters
$username : mixed
$password : mixed
Return values
AdminUser

GetAdminCode()

public GetAdminCode() : mixed

getAdminFileEntrance()

Gets the path for the admin file

public getAdminFileEntrance() : string
Return values
string

full path for file

InstallDatabase()

public InstallDatabase() : mixed

SetBasicConfigs()

public SetBasicConfigs() : void

        
On this page

Search results