framework/web/CUploadedFile.php
public static function getInstancesByName($name)
	{
		if(null===self::$_files)
			self::prefetchFiles();

		$len=strlen($name);
		$results=array();
		foreach(array_keys(self::$_files) as $key)
			if(0===strncmp($key, $name.'[', $len+1) && self::$_files[$key]->getError()!=UPLOAD_ERR_NO_FILE)
				$results[] = self::$_files[$key];
		return $results;
	}
public static function getInstancesByName($name)
	{
		if(null===self::$_files)
			self::prefetchFiles();

		$len=strlen($name);
		$results=array();
		foreach(array_keys(self::$_files) as $key)
			if(0===strncmp($key, $name.'[', $len+1) && self::$_files[$key]->getError()!=UPLOAD_ERR_NO_FILE)
				$results[] = self::$_files[$key];
		return $results;
	}
public static function getInstancesByName ( $ name ) { if ( null === self :: $ _files ) self :: prefetchFiles ( ) ; $ len = strlen ( $ name ) ; $ results = array ( ) ; foreach ( array_keys ( self :: $ _files ) as $ key ) if ( 0 === strncmp ( $ key , $ name . '[' , $ len + 1 ) && self :: $ _files [ $ key ] -> getError ( ) != UPLOAD_ERR_NO_FILE ) $ results [ ] = self :: $ _files [ $ key ] ; return $ results ; }
Returns an array of instances starting with specified array name.

If multiple files were uploaded and saved as 'Files[0]', 'Files[1]',
'Files[n]'..., you can have them all by passing 'Files' as array name.
@param string $name the name of the array of files
@return CUploadedFile[] the array of CUploadedFile objects. Empty array is returned
if no adequate upload was found. Please note that this array will contain
all files from all subarrays regardless how deeply nested they are.
Returns an array of instances starting with specified array name .