Пример #1
0
 private function setExternalLink($p_sType)
 {
     $aResult = array();
     $aResult['link'] = $this->oFiche->getExternalLink();
     switch ($p_sType) {
         case 'film':
             $aResult['title'] = 'AlloCiné';
             break;
         case 'serie':
             $aResult['title'] = "TheTVDB";
             break;
         case 'music':
             $aResult['title'] = "MusicBrainz";
             break;
         default:
             throw new Error('Type de média non défini.', 1153);
             break;
     }
     $this->oView->addData('externallink', $aResult);
 }