Exemple #1
0
 /**
  * Registration
  * @access public
  * @static
  * @name register
  */
 public static function register()
 {
     self::$prefix = substr(__CLASS__, 0, strpos(__CLASS__, '_') + 1);
     self::$path = dirname(dirname(realpath(__FILE__))) . DIRECTORY_SEPARATOR;
     // ici est opéré la registration
     spl_autoload_register(array(__CLASS__, 'autoload'));
 }