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"
$appPath
public
mixed
$appPath
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
AdminUserGetAdminCode()
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
Load()
public
Load() : Install
Return values
Install —itself
LogUserCreated()
public
LogUserCreated(mixed $user) : AdminLog
Parameters
- $user : mixed
Return values
AdminLogSetBasicConfigs()
public
SetBasicConfigs() : void