Ejemplo n.º 1
0
 /**
  * 
  * @param int $nefubId
  */
 public function showPoule($nefubId)
 {
     $this->subdirectory = '/poule';
     $this->path = '/' . $nefubId;
     $this->template = '/poule/poule.tpl';
     if ($this->getClearRender()) {
         $oPoule = Poule::getByNefubId($nefubId);
         if ($oPoule) {
             if ($oPoule->getCompetition()->getGenre()->nefub_name == 'jeugd' || $oPoule->getCompetition()->getGenre()->nefub_name == 'beker') {
                 $oPagePoule = Poule::getSingle(array('competition_nefub_id' => $oPoule->getCompetition()->nefub_id), 'nefub_id');
             } else {
                 $oPagePoule = $oPoule;
             }
             $this->assign('oPoule', $oPoule);
             $this->assign('oPagePoule', $oPagePoule);
             $this->assign('hasRanking', $oPoule->hasRanking());
         } else {
             $this->redirect();
         }
     }
     $this->showOutput();
 }