Magrathea PHP 2

Magrathea2

Table of Contents

Namespaces

Admin
Bootstrap
Compressors
DB
Errors
Exceptions
Tests

Interfaces

iMagratheaModel

Classes

Authentication
Authentication class
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.
Debugger
Magrathea Debugger can manage anything for debugging and error-searching through Magrathea Codes.
Logger
Magrathea class for logging anything By default, the message is written with a timestamp before it.
MagratheaApi
Creates a server using Magrathea Tools to respond Json files
MagratheaApiAuth
Control for Create, Read, List, Update, Delete
MagratheaApiControl
Control for Create, Read, List, Update, Delete
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 Magrathea project
Singleton
Class for Singleton handling

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

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


        
On this page

Search results