Changeset 2906

Show
Ignore:
Timestamp:
06/25/2008 02:40:28 PM (5 months ago)
Author:
Shadowhand
Message:

Renamed swapped upload::required and upload::valid names, due to confusion about the naming

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/upload.php

    r2849 r2906  
    6969 
    7070        /** 
    71          * Tests if a $_FILES item exists. 
     71         * Tests if input data is valid file type, even if no upload is present. 
    7272         * 
    7373         * @param   array  $_FILES item 
    7474         * @return  bool 
    7575         */ 
    76         public static function required($file) 
     76        public static function valid($file) 
    7777        { 
    7878                return (is_array($file) 
     
    8585 
    8686        /** 
    87          * Tests if a $_FILES item is valid. 
     87         * Tests if input data has valid upload data. 
    8888         * 
    8989         * @param   array    $_FILES item 
    9090         * @return  bool 
    9191         */ 
    92         public static function valid(array $file) 
     92        public static function required(array $file) 
    9393        { 
    9494                return (isset($file['tmp_name'])