コード例 #1
0
 /**
  * the singleton pattern
  *
  * @return Sipgate_Backend_Api
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new Sipgate_Backend_Api();
     }
     return self::$_instance;
 }
コード例 #2
0
ファイル: Api.php プロジェクト: rodrigofns/ExpressoLivre3
 /**
  * the singleton pattern
  *
  * @return Sipgate_Backend_Api
  */
 public static function getInstance($_username, $_password, $_url)
 {
     if (self::$_instance === NULL) {
         self::$_instance = new Sipgate_Backend_Api($_username, $_password, $_url);
     }
     return self::$_instance;
 }