/** * 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); }
public static function resetInstance() { self::$_instance = null; }
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); } } }