public function deleteAction() { $event_logger_id = $this->GTParam('event_logger_id', 0); $EG = $this->GTGateway("EventLoggerGateway"); $eventLogger = $EG->findByEventLoggerId($event_logger_id); $result = H\GTResult::to(); if ($eventLogger instanceof EventLogger) { $eventLogger->delete(); $result = H\GTResult::to(); if (!H\GTResult::isError()) { $result = $this->getEvents($EG); } } return $this->GTResult($result); }
public function isError() { return H\GTResult::isError(); }