/** * Show single record information (API only) * * @param void * @return null */ function view() { if ($this->request->isApiCall()) { if ($this->active_time->isNew()) { $this->httpError(HTTP_ERR_NOT_FOUND, null, true, true); } // if if ($this->active_time->canView($this->logged_user)) { $this->serveData($this->active_time, 'time_record'); } else { $this->httpError(HTTP_ERR_FORBIDDEN, null, true, true); } // if } else { $this->httpError(HTTP_ERR_NOT_FOUND); } // if }