public function rewind() { $this->versions = array(); foreach (new Gpf_Io_DirectoryIterator(Gpf_Install_DbFile::getDbDirPath($this->application)) as $fullPath => $file) { if (preg_match('!^update_(.+)\\.(.+)$!', $file, $matches)) { $version = $matches[1]; $extension = $matches[2]; if (version_compare($version, $this->getInstalledVersion()) > 0 && in_array($extension, self::$EXTENSIONS)) { $this->versions[$version] = array($file, $version, $extension); } } } uksort($this->versions, 'version_compare'); $this->next(); }
public function __construct($fileName, $version, $application) { parent::__construct($fileName, $version, $application); }