Magrathea PHP 2

MagratheaPHP extends Singleton
in package

Base class for Magrathea project

Table of Contents

Properties

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

Methods

__wakeup()  : mixed
AddCodeFolder()  : MagratheaPHP
Adds a code folder for autoload
AddFeature()  : MagratheaPHP
Adds features (and its folders)
AppPath()  : MagratheaPHP
Sets App Root Path
Connect()  : MagratheaPHP
Connect to Database
Debug()  : MagratheaPHP
Set debug development
Dev()  : MagratheaPHP
Set dev display errors
getConfigRoot()  : string
Get Config Root
GetDB()  : Database
Gets Database object
GetMagratheaRoot()  : string
Instance()  : static|Singleton
Load()  : MagratheaPHP
Starts Magrathea
LoadVendor()  : void
MockClass()  : static|Singleton
Prod()  : MagratheaPHP
Set prod environment
SetInstance()  : mixed
StartDB()  : MagratheaPHP
Connect to Database (other name for Connect)
StartSession()  : MagratheaPHP
starts session if needed
Test()  : void
Test Magrathea
Version()  : string
Gets Magrathea Version
__clone()  : mixed
__construct()  : mixed

Properties

$instance

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

Methods

AddCodeFolder()

Adds a code folder for autoload

public AddCodeFolder(string ...$folder) : MagratheaPHP
Parameters
$folder : string

foldername

Return values
MagratheaPHP

itself

AddFeature()

Adds features (and its folders)

public AddFeature(string ...$features) : MagratheaPHP
Parameters
$features : string

features names

Return values
MagratheaPHP

itself

getConfigRoot()

Get Config Root

public getConfigRoot() : string
Return values
string

config root

GetMagratheaRoot()

public GetMagratheaRoot() : string
Return values
string

$magratheaRoot

SetInstance()

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

Version()

Gets Magrathea Version

public static Version() : string
Return values
string

version

__construct()

private final __construct() : mixed

        
On this page

Search results