/** * Ejecuta un borrar en la base de datos * @param UserDTO $obj * @return void * @author Johnny Alexander Salazar * @version 0.1 */ public function Delete(UserDTO $obj) { $query = $this->repository->buildQuerySimply("deleteuser", array((int) $obj->getId())); $this->repository->ExecuteTransaction($query); }
public function confirmRegistration(\UserDTO $userDTO) { try { $this->userAutentication(); $set = array(JOINEDAT => $userDTO->getJoinedAt()); $where = array(USERID => $userDTO->getUserId()); $result = $this->getDB()->update(USER_TABLE, $set, $where); return $result; } catch (PDOException $pdoe) { throw $pdoe; } catch (UserNotAuthenticatedExceptionDTO $authExp) { throw $authExp; } catch (Exception $e) { throw $e; } }