Magrathea PHP 2

Application

Table of Contents

Interfaces

iAdminFeature
iAdmin
iMagratheaModel

Classes

Admin
Class for managing Magrathea's Admin
AdminDatabase
Class for installing Magrathea's Admin
AdminElements
Class for Admin Elements
AdminFeature
Class for Admin Feature
AdminForm
Class for Admin Elements
AdminManager
Class for managing Magrathea's Admin
AdminMenu
Class for managing Magrathea's Admin Menu
AdminUrls
Class for managing Magrathea's Admin
AdminUsers
Class for Singleton handling
AdminApi
Creates and manages a RESTful API server.
AdminConfigApi
Base Control for API endpoints.
AdminUserApi
Base Control for API endpoints.
DatabaseApi
Base Control for API endpoints.
ObjectsApi
Base Control for API endpoints.
UserLogsApi
Base Control for API endpoints.
CodeCreator
Class for code generations
CodeManager
Class for handling automatically generated files
ApiExplorer
Class for Admin Feature
AdminFeatureAppConfig
Class for installing Magrathea's Admin
AppConfig
Class for installing Magrathea's Admin
AppConfigControl
Class for installing Magrathea's Admin
AdminFeatureCache
Class for installing Magrathea's Admin
AdminCrudObject
Class for Admin Object
AdminFeatureFileEditor
Class for installing Magrathea's Admin
AdminFeatureUser
Class for installing Magrathea's Admin
AdminUser
Class for installing Magrathea's Admin
AdminUserControl
AdminFeatureUserLog
Class for installing Magrathea's Admin
AdminLog
Class for installing Magrathea's Admin
AdminLogControl
Install
Class for installing Magrathea's Admin
ObjectManager
This class will help you deal with objects
Start
Class for installing Magrathea's Admin
Authentication
Authentication class
Start
Class for handling and loading Magrathea's Bootstrap system
CssCompressor
JavascriptCompressor
MagratheaCompressor
Config
This class will provide you the quickest access possible to the magrathea.conf config file.
ConfigApp
This class will provide you the quickest access possible to the magrathea.conf config file.
ConfigFile
Magrathea Config loads and saves information in config files.
Database
This class will provide a layer for connecting with mysql
DatabaseSimulate
This class will provide a simulation of MagratheaDatabase queries will be saved on a file.
QueryDelete
Extension of Magrathea Query for creating Delete queries
QueryHelper
QueryInsert
Extension of Magrathea Query for creating Insert queries
QueryUpdate
Extension of Magrathea Query for creating Update queries
Debugger
Magrathea Debugger can manage anything for debugging and error-searching through Magrathea Codes.
ErrorManager
This class will print errors in beautiful pages
MagratheaApiException
Class for Magrathea Api Errors
MagratheaConfigException
Class for Magrathea Config Errors
MagratheaDBException
Class for Magrathea DB Errors
MagratheaException
MagratheaModelException
Class for Magrathea Model Errors
Logger
Magrathea class for logging anything By default, the message is written with a timestamp before it.
MagratheaApi
Creates and manages a RESTful API server.
MagratheaApiAuth
Class for handling API Authentication using JWT.
MagratheaApiControl
Base Control for API endpoints.
MagratheaCache
MagratheaCache: cache static responses to save some processing time
MagratheaHelper
MagratheaMail
MagratheaEmail: function that manages e-mail sends, building headers and sending e-mails
MagratheaMailSMTP
MagratheaEmail: function that manages e-mail sends, building headers and sending e-mails
MagratheaModel
MagratheaModelControl
MagratheaPHP
Base class for a Magrathea project.
Singleton
Class for Singleton handling
appConfigTest
MagratheaApiTest
configFileTest
configTest
MagratheaHelperTest
loggerTest
objectManagerTest
queryTest
TestsHelper
TestsManager
Class for handling and code generations

Traits

Magrathea_Enum

Functions

now()  : string
Date of now - mySQL format
arrToStr()  : string
p_r()  : mixed
Prints easily and beautifully
isMagratheaModel()  : bool
Gets an object and returns if it is a Magrathea Model
getClassNameOfClass()  : string
As asked to ChatGPT: a function that gets a full class name, such as MagratheaContacts\Users\AdminUsers and return just the last part AdminUsers
magrathea_getTypesArr()  : array<string|int, mixed>
Array of types available at Magrathea
Debug()  : mixed
Debugs what is sent, according with debug configurations
DebugError()  : mixed
Debugs error, according with debug configurations
Info()  : mixed
Adds to info debug, according with configurations
prettyPrint()  : mixed
getSqlFilesInFolder()  : mixed
getLastLines()  : mixed
hasColumn()  : mixed
printResponse()  : mixed
checkPathIsOk()  : mixed
getMainTitle()  : mixed
getTitle()  : mixed
getExternalLink()  : mixed
getEmpty()  : mixed
getItem()  : mixed
getColumnsOf()  : mixed
linkTo()  : mixed
getClass()  : mixed
linkStepTo()  : mixed
printField()  : mixed

Functions

now()

Date of now - mySQL format

now() : string
Return values
string

Y-m-d H:i:s format of date

arrToStr()

arrToStr(mixed $array) : string
Parameters
$array : mixed
Return values
string

p_r()

Prints easily and beautifully

p_r(object|array<string|int, mixed>|string|int $debugme) : mixed
Parameters
$debugme : object|array<string|int, mixed>|string|int

Object to be printed

isMagratheaModel()

Gets an object and returns if it is a Magrathea Model

isMagratheaModel(mixed $object) : bool
Parameters
$object : mixed
Return values
bool

getClassNameOfClass()

As asked to ChatGPT: a function that gets a full class name, such as MagratheaContacts\Users\AdminUsers and return just the last part AdminUsers

getClassNameOfClass(string $fullClassName) : string
Parameters
$fullClassName : string

full class name

Return values
string

class name

magrathea_getTypesArr()

Array of types available at Magrathea

magrathea_getTypesArr() : array<string|int, mixed>
Return values
array<string|int, mixed>

Debug()

Debugs what is sent, according with debug configurations

Debug(object $bug) : mixed
Parameters
$bug : object

object to debug

DebugError()

Debugs error, according with debug configurations

DebugError(mixed $error) : mixed
Parameters
$error : mixed

Info()

Adds to info debug, according with configurations

Info(object $bug) : mixed
Parameters
$bug : object

object to debug

prettyPrint()

prettyPrint(mixed $json) : mixed
Parameters
$json : mixed

getSqlFilesInFolder()

getSqlFilesInFolder(mixed $folderPath) : mixed
Parameters
$folderPath : mixed

getLastLines()

getLastLines(mixed $filename, mixed $lines) : mixed
Parameters
$filename : mixed
$lines : mixed

hasColumn()

hasColumn(mixed $arr, mixed $field) : mixed
Parameters
$arr : mixed
$field : mixed

printResponse()

printResponse(mixed $response) : mixed
Parameters
$response : mixed

checkPathIsOk()

checkPathIsOk(mixed $p) : mixed
Parameters
$p : mixed

getMainTitle()

getMainTitle(mixed $item) : mixed
Parameters
$item : mixed

getTitle()

getTitle(mixed $item) : mixed
Parameters
$item : mixed
getExternalLink(mixed $item) : mixed
Parameters
$item : mixed

getEmpty()

getEmpty(mixed $item) : mixed
Parameters
$item : mixed

getItem()

getItem(mixed $item) : mixed
Parameters
$item : mixed

getColumnsOf()

getColumnsOf(mixed $table) : mixed
Parameters
$table : mixed

linkTo()

linkTo(mixed $step) : mixed
Parameters
$step : mixed

getClass()

getClass(mixed $step) : mixed
Parameters
$step : mixed

linkStepTo()

linkStepTo(mixed $step) : mixed
Parameters
$step : mixed

printField()

printField(mixed $id, mixed $name[, mixed $default = null ]) : mixed
Parameters
$id : mixed
$name : mixed
$default : mixed = null

        
On this page

Search results