示例#1
0
    /**
     *
     * @returns TimestampConverter
     * @return TimestampConverter
     */

    public static function getInstance()
    {
        if (!isset(self::$instance))
        {
            self::$instance = new TimestampConverter();
        }
        return self::$instance;
    }
示例#2
0
 private function stats()
 {
     $this->ln();
     $this->SetFont('roboto', 'B', 14);
     $this->Cell(180, 0, 'Stats', 0, 1);
     $this->SetFont('roboto', '', 12);
     $this->Cell(80, 0, 'Spielzeit', 0, 0);
     $this->Cell(80, 0, TimestampConverter::getInstance()->secToMinute($this->duration), 0, 1, 'R');
     $this->Cell(80, 0, 'Songs', 0, 0);
     $this->Cell(80, 0, $this->countSongs, 0, 1, 'R');
 }
示例#3
0
文件: Song.php 项目: hlag/svs
 public function setSong($song)
 {
     $song['b'] = $song['c'];
     $song['arr_b'] = $song['arr_c'];
     $song['arr_t'] = '';
     $song['arr_p'] = '';
     $inst = array('Western', 'E-Gitarre', 'Akkordeon', 'Keyboard');
     foreach ($song as $key => $value) {
         if (property_exists($this, $key)) {
             $this->{$key} = trim($value);
         }
     }
     $this->duration = $song['duration'] == 0 ? 200 : $song['duration'];
     $this->genre = $song['g_name'];
     $this->instrumentKlaus = $inst[$song['instrument']];
     $this->setMusiker($song);
     $this->setStatusClass();
     $this->angefangen_gen = TimestampConverter::getInstance()->convertSQLtoLesbar($this->angefangen);
     $this->erschienen_gen = TimestampConverter::getInstance()->convertSQLtoLesbar($this->erschienen);
     $this->txt_link = $this->txt != '' ? '<a href="/files/' . $this->txt . '">txt</a>' : '';
     $this->mp3_link = $this->mp3 != '' ? '<a href="/files/' . $this->mp3 . '">mp3</a>' : '';
 }
示例#4
0
文件: playlist.php 项目: hlag/svs
 public function setStartUhrzeit($uhrzeitStart)
 {
     $this->pl_start = TimestampConverter::getInstance()->convertDatumAnUhrzeitToUnix($this->pl_datum, $uhrzeitStart);
 }
示例#5
0
 public function getPauseEdit()
 {
     $data['pause'] = TimestampConverter::getInstance()->secToMinute($this->pb_pause);
     $data['pb_id'] = $this->pb_id;
     return TemplateParser::getInstance()->parseTemplate($data, 'Bloecke/editPause.html', PATH);
 }