Ejemplo n.º 1
0
 /**
  * Init training
  */
 private function initTraining()
 {
     // TODO: Cache?
     $this->ActivityContext = new Activity\Context(SharedLinker::getTrainingId(), SessionAccountHandler::getId());
     if ($this->ActivityContext->activity()->id() <= 0) {
         $this->ActivityContext = null;
     }
 }
Ejemplo n.º 2
0
 /**
  * Can find activity ID?
  * @return boolean
  */
 protected function canFindActivityID()
 {
     return Request::isOnSharedPage() && SharedLinker::getTrainingId() > 0;
 }