示例#1
0
 public function setClientAdmin()
 {
     $request = $this->getAjaxData();
     $OC = new ClientTableObject($request['DadesBDD'], ClientTableObject::FROM_JSON);
     $OC->doSave(true);
 }
示例#2
0
 public function ajaxGetClientEspectacles()
 {
     if ($this->isAuth()) {
         $CTO = new ClientTableObject();
         $CTO->loadById($this->idU);
         echo json_encode($CTO->getComandes());
     } else {
         throw new MyException("Permisos insuficients");
     }
 }