예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }