thirdparty/Zend/Validate/File/Upload.php
public function setFiles($files = array())
    {
        if (count($files) === 0) {
            $this->_files = $_FILES;
        } else {
            $this->_files = $files;
        }

        foreach($this->_files as $file => $content) {
            if (!isset($content['error'])) {
                unset($this->_files[$file]);
            }
        }

        return $this;
    }
public function setFiles($files = array())
    {
        if (count($files) === 0) {
            $this->_files = $_FILES;
        } else {
            $this->_files = $files;
        }

        foreach($this->_files as $file => $content) {
            if (!isset($content['error'])) {
                unset($this->_files[$file]);
            }
        }

        return $this;
    }
public function setFiles ( $ files = array ( ) ) { if ( count ( $ files ) === 0 ) { $ this -> _files = $ _FILES ; } else { $ this -> _files = $ files ; } foreach ( $ this -> _files as $ file => $ content ) { if ( ! isset ( $ content [ 'error' ] ) ) { unset ( $ this -> _files [ $ file ] ) ; } } return $ this ; }
Sets the files to be checked

@param  array $files The files to check in syntax of Zend_File_Transfer
@return Zend_Validate_File_Upload Provides a fluent interface
Sets the files to be checked