Ejemplo n.º 1
0
 public function getContent()
 {
     $liste = new Liste();
     $songs = $liste->getSongs('erschienen');
     $retval = '<br><br><h1>erschienen</h1>';
     foreach ($songs as $song) {
         $retval .= $song->renderSong('songErschienenListItem');
     }
     return $retval;
 }
Ejemplo n.º 2
0
 public function getContent()
 {
     //$id3 = new getid3_mp3(new getID3());
     $liste = new Liste();
     $liste->getSongs('all');
     foreach ($liste->songs as $song) {
         if ($song->mp3 != '') {
             $f = PATH . 'files/' . $song->mp3;
             if (file_exists($f)) {
                 $seconds = $this->getLenght($f);
                 $song->duration = $seconds;
                 $song->saveSong();
             }
             // if(0 < ($seconds = $this->getLenght($song->mp3)))
         }
     }
 }
Ejemplo n.º 3
0
 public function getContent()
 {
     //$id3 = new getid3_mp3(new getID3());
     $liste = new Liste();
     $liste->getSongs('all');
     foreach ($liste->songs as $song) {
         if ($song->mp3 != '') {
             $f = PATH . 'files/' . $song->mp3;
             if (file_exists($f)) {
                 z($f);
                 $datum = date("Y-m-d", filemtime($f));
                 z($datum);
                 $song->__set('angefangen', $datum);
                 $song->saveSong();
             }
             // if(0 < ($seconds = $this->getLenght($song->mp3)))
         }
     }
 }
Ejemplo n.º 4
0
 public function getUebrigeSong()
 {
     $liste = new Liste();
     $songs = $liste->getSongs('uebrige');
     $retval = '';
     $headline = '';
     foreach ($songs as $S) {
         if ($S->genre != $headline) {
             $headline = $S->genre;
             $retval .= '<h2>' . $headline . '</h2>';
         }
         if (!isset($this->usedSongs[$S->getID()])) {
             $retval .= $S->renderUebrigeSong(0);
             $this->uebrigeSongs[] = $S;
         }
     }
     return $retval;
 }