/** * Shows details for an individual event date time, as well as forms for * registering and un-registering. * * @param SS_HTTPRequest $request * @return array */ public function details($request) { $id = $request->param('ID'); if (!ctype_digit($id)) { $this->httpError(404); } $time = RegistrableDateTime::get()->byID($id); if (!$time || $time->EventID != $this->ID) { $this->httpError(404); } $request->shift(); $request->shiftAllParams(); return new EventTimeDetailsController($this, $time); }