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

Namespaces

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

Classes

  • Alo
  • Log

Functions

  • debug
  • debugLite
  • get
  • getallheaders
  • phpDeprecated
  • phpError
  • phpNotice
  • phpWarning
  • timestampPrecise

Class Alo

The global framework class

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

Methods summary

public static string|boolean
#loadConfig(string$path,boolean$returnPath=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
$returnPath
boolean
$returnPath If set to true it will return the calculated path instead of requiring the file

Returns

string|boolean
The path is $returnPath is true, TRUE if it is false

Author

Art <a.molcanovas@gmail.com>
public static boolean
#includeifexists(string$path)

Performs include() only if a file exists

Performs include() only if a file exists

Parameters

$path
string
$path Path to the file

Returns

boolean
true if the file exists, false if not.
public static boolean
#includeonceifexists(string$path)

Performs include_once() only if a file exists

Performs include_once() only if a file exists

Parameters

$path
string
$path Path to the file

Returns

boolean
true if the file exists, false if not.
public static boolean
#serverIsWindows( )

Check if the server is running Windows

Check if the server is running Windows

Returns

boolean

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

Properties summary

public staticAlo\SFTP$sftp
#

SFTP connection manager

SFTP connection manager

public staticAlo\Profiler$profiler
#

Code profiler

Code profiler

public staticAlo\FileSystem\File$file
#

File manager

File manager

public staticAlo\Email$email
#

Email manager

Email manager

public staticAlo\Curl$curl
#

Object-oriented Curl wrapper

Object-oriented Curl wrapper

public staticAlo\Cron$cron
#

Crontab manager

Crontab manager

public staticAlo\Validators\Form$formValidator
#

HTML form validator

HTML form validator

public staticAlo\Db\AbstractDb$db
#

Database connection

Database connection

public staticAlo\Cache\AbstractCache$cache
#

Cache instance

Cache instance

public staticAlo\Controller\AbstractController$controller
#

The loaded controller

The loaded controller

public staticAlo\Controller\Router$router
#

The routing class

The routing class

public staticAlo\Windows\Service$service
#

Windows service handler

Windows service handler

public staticAlo\CLI\Downloader$downloader
#

Download manager

Download manager

public staticAlo\Locale$locale
#

Locale manager

Locale manager

AloFramework documentation API documentation generated byApiGen 2.8.0