/** * Constructor * * set private to avoid directly instatiation to implement * Singleton Design Pattern **/ private function __construct() { self::$path = dirname(__FILE__); if (function_exists('spl_autoload_register')) { require_once "loader" . DIRECTORY_SEPARATOR . "PadlAutoLoader.php"; PadlAutoloader::registerAutoload(); } else { require_once "loader" . DIRECTORY_SEPARATOR . "PadlAutoLoaderFunction.php"; } }