コード例 #1
0
ファイル: Couch.php プロジェクト: rojakcoder/phly
 /**
  * Set default HTTP client
  * 
  * @param  Zend_Http_Client $client 
  * @return void
  */
 public static function setDefaultHttpClient(Zend_Http_Client $client)
 {
     self::$_defaultClient = $client;
 }
コード例 #2
0
ファイル: Server.php プロジェクト: ajbrown/bitnotion
 /**
  *
  * @param 	string $apiKey The api key to verify
  * @return 	boolean	true if the api key is valid, otherwise false
  */
 public function verifyApiKey($apiKey)
 {
     $options = array('key' => "\"{$apiKey}\"");
     $response = $this->_couch->openView('apikeys', 'active', $options);
     return $response->count() > 0;
 }