function __construct() { parent::__construct(); $bps = $this->getMyBPSData(); $S = new Serie($bps["SerieID"]); $F = new mFile(); $F->setDir($S->A("dir"), true); mFolgeGUI::$Serie = $S; $E = array(); while ($t = $F->getNextEntry()) { if (!$t->A("FileIsDir")) { $newFilename = $t->A("FileName"); if (Util::isWindowsHost()) { $newFilename = utf8_encode($newFilename); } $E[] = $newFilename; } } mFolgeGUI::$files = $E; mFolgeGUI::$found = array(); }
private function getAllFiles($dir) { $D = new mFile(); $D->setDir($dir, true); $episodes = array(); while ($F = $D->getNextEntry()) { if ($F->A("FileIsDir") == "1" and strpos($F->A("Filename"), ".") === 1) { continue; } $episodes[] = $F->getID(); } return $episodes; }