Esempio n. 1
0
 /**
  * I AM SINGLETON
  * We don't need to go instantiating all these objects more than once here
  * @return Instaphp 
  */
 public static function Instance($token = null)
 {
     if (self::$instance == null || !empty($token)) {
         self::$instance = new self($token);
     }
     return self::$instance;
 }
Esempio n. 2
0
 /**
  * I AM SINGLETON
  * We don't need to go instantiating all these objects more than once here
  * @return Instaphp 
  */
 public static function Instance($token = null, $config = array())
 {
     if (self::$instance == null || !empty($token)) {
         self::$instance = new self($token, $config);
     }
     return self::$instance;
 }