コード例 #1
0
 /**
  * Player_Application class
  * 
  * Install and play the player
  *
  * @param  string $environment null
  * @param  array $options null
  * @return void
  */
 public function __construct($environment = null, $options = null)
 {
     require_once 'Player/Loader/Autoloader.php';
     $this->_autoloader = Player_Loader_Autoloader::getInstance();
     $this->load();
     $this->setConstruct($environment, $options);
 }
コード例 #2
0
 public static function resetInstance()
 {
     self::$_instance = null;
 }
コード例 #3
0
ファイル: Loader.php プロジェクト: alexndreazevedo/iplayer
 public static function registerAutoload($class = 'Player_Loader', $enabled = true)
 {
     require_once 'Player/Loader/Autoloader.php';
     $autoloader = Player_Loader_Autoloader::getInstance();
     $autoloader->setFallbackAutoloader(true);
     if ('Player_Loader' != $class) {
         self::loadClass($class);
         $methods = get_class_methods($class);
         $callback = array($class, 'autoload');
         if ($enabled) {
             $autoloader->pushAutoloader($callback);
         } else {
             $autoloader->removeAutoloader($callback);
         }
     }
 }