/** * 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; }
/** * Return an instance of the TelAPI Client class * * @return Class <TelApi_Client, self, NULL> */ function getClient() { return TelApi_Client::getInstance(); }