Advertisement
Guest User

offrdel

a guest
Mar 26th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. public function offerDeletedostAction($p){
  2.             $doid = $this->getParam($p,"doid",DostepnoscOffer::class,true,[],null);
  3.             if($this->allProvided()){
  4.                 if($doid != null && is_object($doid)){
  5.                     $doid->set("delete", DostepnoscOffer::DEL_YES);
  6.                     $this->dbEngine->persist($doid);
  7.                     $this->res("status","Success");
  8.                 }else{
  9.                     $this->res("error","Can't find any fields.");
  10.                 }
  11.             }
  12.             else{
  13.                 $this->res("error","Data missing");
  14.             }
  15.             return $this->response;
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement