예제 #1
0
파일: Sdk.php 프로젝트: telapi/telapi-php
 /**
  * Singleton access method to TelAPI. This is THE ONLY PROPER WAY to
  * access the TelAPI wrapper!
  *
  * @return self
  */
 static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #2
0
 /**
  * Return an instance of the TelAPI Client class
  * 
  * @return Class <TelApi_Client, self, NULL>
  */
 function getClient()
 {
     return TelApi_Client::getInstance();
 }