public static function GetFileNames($dir, $filters = array()) {
        $filenames = array_diff(scandir($dir), array('..', '.'));
        if (count($filters > 0)) {
            $filenames = self::FilterArray($filenames, $filters);
        }
        return $filenames;
    }