Пример #1
0
 private function execRelease()
 {
     if ($this->_resource_exist_b === FALSE) {
         $errorMessage = sprintf("can not execute <%s> on inexistant resource", self::_RELEASE);
         self::$_log->error($errorMessage);
         throw new Exception($errorMessage);
     }
     $this->_foundResource->unreserve($this->_givenResource->getTransactionId());
     self::$_log->info(sprintf("<%s> applied on this [%s] Object: <%s>", self::_RELEASE, get_class($this->_givenResource), $this->_foundResource->toString()));
     return NULL;
 }
Пример #2
0
 /**
  * 
  * @param mixed $data_m
  * @return ResponseWrapperImpl Description
  */
 public function put($data_m)
 {
     $this->_resource->setData($data_m);
     return $this->execute(IResourceHolder::_PUT);
 }