public static function init($checkMagicAutoload = true)
    {
        // check first if init wasn't done already
        if (!self::$initialized) {
            // clear stack
            spl_autoload_register(null, false);

            // check if a magic __autoload function exists
            if ($checkMagicAutoload && function_exists('__autoload')) {
                spl_autoload_register('__autoload');
            }

            // mark init done
            self::$initialized = true;
        }
    }
public static function init($checkMagicAutoload = true)
    {
        // check first if init wasn't done already
        if (!self::$initialized) {
            // clear stack
            spl_autoload_register(null, false);

            // check if a magic __autoload function exists
            if ($checkMagicAutoload && function_exists('__autoload')) {
                spl_autoload_register('__autoload');
            }

            // mark init done
            self::$initialized = true;
        }
    }
public static function init ( $ checkMagicAutoload = true ) { // check first if init wasn't done already if ( ! self :: $ initialized ) { // clear stack spl_autoload_register ( null , false ) ; // check if a magic __autoload function exists if ( $ checkMagicAutoload && function_exists ( '__autoload' ) ) { spl_autoload_register ( '__autoload' ) ; } // mark init done self :: $ initialized = true ; } }
This method is intend to initialize the basic setup.

@param bool $checkMagicAutoload TRUE to keep magic function __autoload working, otherwise FALSE

@author Benjamin Carl <opensource@clickalicious.de>
@return void
@access public
@static
This method is intend to initialize the basic setup .