public function handleFile(&$file) { // Filter berücksichtigen if (strlen($this->filter) == 0 or preg_match("/({$this->filter})/{$this->i}", $file)) { parent::handleFile($file); } }
/** * verarbeitet gefundene Dateien * * @param string $file */ protected function handleFile(&$file) { // TS der letzten Änderung vergleichen $mtimeComparison = $this->compareMtime($this->mtime, filemtime($file)); if (!in_array($mtimeComparison, $this->mtimeOperator)) { return; } parent::handleFile($file); }