예제 #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
 /**
  * @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;
 }