/** * Get the Instance of self * * @return App_Config */ public static function getInstance(array $options = array()) { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
/** * Sets the config object as the default config instance so the config object does not need to be * supplied in the constructor to all the PHPVideoToolkit objects. * * @access public * @author Oliver Lillie * @return void */ public function setAsDefaultInstance() { self::$_instance = $this; }