Пример #1
0
 static function files($var = null)
 {
     if (!self::$_files) {
         self::$_files = self::clean($_FILES);
     }
     if ($var) {
         if (isset(self::$_files[$var])) {
             return self::clean(self::$_files[$var]);
         } else {
             return null;
         }
     } else {
         return self::$_files;
     }
 }