\Alo

The global framework class

Summary

Methods
Properties
Constants
loadSession()
loadConfig()
$sftp
$profiler
$file
$email
$curl
$cron
$form_validator
$tester
$db
$cache
$session
$controller
$router
SESS_MYSQL
SESS_MEMCACHED
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

SESS_MYSQL

SESS_MYSQL

Defines a session type as SQL

SESS_MEMCACHED

SESS_MEMCACHED

Defines a session type as Memcached

Properties

$sftp

$sftp : \Alo\SFTP

SFTP connection manager

Type

\Alo\SFTP

$profiler

$profiler : \Alo\Profiler

Code profiler

Type

\Alo\Profiler

$file

$file : \Alo\File

File manager

Type

\Alo\File

$email

$email : \Alo\Email

Email manager

Type

\Alo\Email

$curl

$curl : \Alo\cURL

Object-oriented cURL wrapper

Type

\Alo\cURL

$cron

$cron : \Alo\Cron

Crontab manager

Type

\Alo\Cron

$form_validator

$form_validator : \Alo\Validators\Form

HTML form validator

Type

\Alo\Validators\Form

Methods

loadSession()

loadSession(string  $type = self::SESS_MYSQL) : \Alo\Session\AbstractSession

Loads a session

Parameters

string $type

The session class name - see Alo::SESS_* constants

Returns

\Alo\Session\AbstractSession

loadConfig()

loadConfig(string  $path, boolean  $return_path = false) : string|boolean

Loads a configuration file based on environment: from DIR_SYS/config during setup & DIR_APP/config during production/development

Parameters

string $path

The config file relative path without the file extension, e.g. to load a file found in config/db/mysql.php provide db/mysql

boolean $return_path

If set to true it will return the calculated path instead of requiring the file

Returns

string|boolean —

The path is $return_path is true, TRUE if it is false