/** * Helper method to link to this speaker, given an action * * @param $action * @return string */ protected function linkTo($presentationID, $action = null) { $presentation = Presentation::get()->byID($presentationID); if (is_null($presentation)) { return false; } if ($page = PresentationPage::get()->filter('SummitID', $presentation->SummitID)->first()) { return Controller::join_links($page->Link(), 'manage', $presentationID, 'speaker', $this->ID, $action); } }
/** * Gets a link to delete this presentation * * @return string */ public function DeleteLink() { if ($page = PresentationPage::get()->filter('SummitID', $this->SummitID)->first()) { return Controller::join_links($page->Link(), 'manage', $this->ID, 'delete', '?t=' . SecurityToken::inst()->getValue()); } }
/** * Helper method to link to this speaker, given an action * * @param $action * @return string */ protected function linkTo($presentationID, $action = null) { if ($page = PresentationPage::get()->first()) { return Controller::join_links($page->Link(), 'manage', $presentationID, 'speaker', $this->ID, $action); } }
/** * Gets a link to speaker bio form * * @return string */ public function BioLink() { $action = 'bio'; if ($this->isPendingOfRegistration()) { $action .= '?' . SpeakerRegistrationRequest::ConfirmationTokenParamName . '=' . $this->RegistrationRequest()->getToken(); } if ($page = PresentationPage::get()->filter('SummitID', Summit::get_active()->getIdentifier())->first()) { return Controller::join_links($page->Link(), $action); } }
public function PresentationDeadlineText() { $summit = Summit::get_active(); $page = PresentationPage::get()->filter('SummitID', $summit->ID)->first(); return $page->PresentationDeadlineText; }