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