コード例 #1
0
ファイル: RomaClient.php プロジェクト: keiju/roma
 /**
  * alist clear.
  * @param key (string)
  * @return status
  */
 public function alist_clear($key)
 {
     $result = rmc_alist_clear($key);
     return $result == RomaClient::CLEARED ? True : False;
 }
コード例 #2
0
ファイル: RomaClient.php プロジェクト: jun930/roma-php-client
 /**
  * @brief ALIST operation. (Issue 'alist_clear' command)
  * @param key
  * @return Returns True if success.
  */
 public function alist_clear($key)
 {
     $result = rmc_alist_clear($this->client_id, $key, $this->default_timeout);
     if (is_null($result) || $result == RomaClient::RMC_RET_EXCEPTION) {
         throw new Exception("rmc_alist_clear() failure");
     } else {
         if ($result == RomaClient::RMC_RET_ERROR) {
             return False;
         }
     }
     return True;
 }