/**
  * 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);
     }
 }
示例#2
0
 /**
  * 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);
     }
 }
示例#5
0
 public function PresentationDeadlineText()
 {
     $summit = Summit::get_active();
     $page = PresentationPage::get()->filter('SummitID', $summit->ID)->first();
     return $page->PresentationDeadlineText;
 }