Beispiel #1
0
 private function initializeExtendedInfoColumns(MusicTag $musicTag, AbstractHtmlTable $htmlTable)
 {
     if ($musicTag->getConfiguration()->isShowExtendedInfo()) {
         if ($this->isAllowDownload($musicTag->getConfiguration())) {
             $htmlTable->addColumn(self::EXTENDED_INFO_ROW, new HtmlDummyColumn());
         }
         if (CoverImage::isBrowserSupported()) {
             $column = new HtmlCoverArtColumn();
             $column->addCssElement("vertical-align", "top");
             $htmlTable->addColumn(self::EXTENDED_INFO_ROW, $column);
         }
         $column = new HtmlCommentsColumn(2);
         $column->addCssElement("vertical-align", "top");
         $htmlTable->addColumn(self::EXTENDED_INFO_ROW, $column);
     }
 }
Beispiel #2
0
 public function hasCover()
 {
     return CoverImage::hasCover($this->getId3FileInfo);
 }
 public function isEmpty($data)
 {
     return !$data->hasCover() || !CoverImage::isBrowserSupported();
 }