public function showEditLinks($event) { return JRequest::getBool("showEditOptions") && SWG_EventsController::canEdit($event) && ($event instanceof WalkInstance && $this->addEditWalkURL() || $event instanceof Social && $this->addEditSocialURL() || $event instanceof Weekend && $this->addEditWeekendURL()); }