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