AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Statics
    • Test
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • Alo
  • Log

Functions

  • debug
  • escape_html5
  • get
  • getallheaders
  • includeifexists
  • includeonceifexists
  • lite_debug
  • server_is_windows
  • timestamp_precise

Class Alo

The global framework class

Author: Art <a.molcanovas@gmail.com>
Located at sys/core/alo.php

Methods summary

public static Alo\Session\AbstractSession
# loadSession( string $type = Alo::SESS_MYSQL )

Loads a session

Loads a session

Parameters

$type
string
$type The session class name - see Alo::SESS_* constants

Returns

Alo\Session\AbstractSession

See

Alo::SESS_MYSQL
Alo::SESS_MEMCACHED
public static string|boolean
# loadConfig( string $path, boolean $return_path = false )

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

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

Parameters

$path
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
$return_path
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

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

Constants summary

string SESS_MYSQL 'SQLSession'
#

Defines a session type as SQL

Defines a session type as SQL

string SESS_MEMCACHED 'MemcachedSession'
#

Defines a session type as Memcached

Defines a session type as Memcached

Properties summary

public static Alo\SFTP $sftp
#

SFTP connection manager

SFTP connection manager

public static Alo\Profiler $profiler
#

Code profiler

Code profiler

public static Alo\File $file
#

File manager

File manager

public static Alo\Email $email
#

Email manager

Email manager

public static Alo\cURL $curl
#

Object-oriented cURL wrapper

Object-oriented cURL wrapper

public static Alo\Cron $cron
#

Crontab manager

Crontab manager

public static Alo\Validators\Form $form_validator
#

HTML form validator

HTML form validator

public static Alo\Db\AbstractDb $db
#

Database connection

Database connection

public static Alo\Cache\AbstractCache $cache
#

Cache instance

Cache instance

public static Alo\Session\AbstractSession $session
#

The session handler

The session handler

public static Alo\Controller\AbstractController $controller
#

The loaded controller

The loaded controller

public static Alo\Controller\Router $router
#

The routing class

The routing class

public static Alo\Windows\Service $service
#

Windows service handler

Windows service handler

public static Alo\CLI\Downloader $downloader
#

Download manager

Download manager

AloFramework documentation API documentation generated by ApiGen 2.8.0