Пример #1
0
 /**
  * Défini le header de la page
  * @param string $p_sFicheType
  * @throws Error
  */
 private function setHeader($p_sFicheType)
 {
     $this->oView->addData('title', $this->oFiche->getTitle());
     switch ($p_sFicheType) {
         case 'film':
             $this->oView->addData('subtitle', $this->oFiche->getOriginalTitle());
             $this->oView->addData('complement', $this->oFiche->getYear());
             break;
         case 'serie':
             $this->oView->addData('complement', $this->oFiche->getStatus());
             $this->oView->addData('subtitle', $this->oFiche->getNetwork());
             break;
         case 'music':
             $this->oView->addData('complement', $this->oFiche->getArtist());
             $this->oView->addData('subtitle', $this->oFiche->getDate());
             break;
         default:
             throw new Error('Type de média non défini.', 1153);
             break;
     }
 }