protected function parseFiles(array $raw) {
		if(isset($raw['name']) && isset($raw['type']) && isset($raw['tmp_name']) && isset($raw['error']) && isset($raw['size'])) {
			if(is_array($raw['name'])) {
				$name = $this->convertTo('name', $raw['name']);
				$type = $this->convertTo('type', $raw['type']);
				$tmp_name = $this->convertTo('tmp_name', $raw['tmp_name']);
				$error = $this->convertTo('error', $raw['error']);
				$size = $this->convertTo('size', $raw['size']);

				$files = $this->mergeAll($name, $type, $tmp_name, $error, $size);

				foreach($files as $k=>$v)
					$files[$k] = \Asgard\Http\HttpFile::createFromArray($v);
			}
			else
				$files = \Asgard\Http\HttpFile::createFromArray($raw);
		}
		else {
			foreach($raw as $k=>$v)
				$raw[$k] = $this->parseFiles($v);
			$files = $raw;
		}

		return $files;
	}
protected function parseFiles(array $raw) {
		if(isset($raw['name']) && isset($raw['type']) && isset($raw['tmp_name']) && isset($raw['error']) && isset($raw['size'])) {
			if(is_array($raw['name'])) {
				$name = $this->convertTo('name', $raw['name']);
				$type = $this->convertTo('type', $raw['type']);
				$tmp_name = $this->convertTo('tmp_name', $raw['tmp_name']);
				$error = $this->convertTo('error', $raw['error']);
				$size = $this->convertTo('size', $raw['size']);

				$files = $this->mergeAll($name, $type, $tmp_name, $error, $size);

				foreach($files as $k=>$v)
					$files[$k] = \Asgard\Http\HttpFile::createFromArray($v);
			}
			else
				$files = \Asgard\Http\HttpFile::createFromArray($raw);
		}
		else {
			foreach($raw as $k=>$v)
				$raw[$k] = $this->parseFiles($v);
			$files = $raw;
		}

		return $files;
	}
protected function parseFiles ( array $ raw ) { if ( isset ( $ raw [ 'name' ] ) && isset ( $ raw [ 'type' ] ) && isset ( $ raw [ 'tmp_name' ] ) && isset ( $ raw [ 'error' ] ) && isset ( $ raw [ 'size' ] ) ) { if ( is_array ( $ raw [ 'name' ] ) ) { $ name = $ this -> convertTo ( 'name' , $ raw [ 'name' ] ) ; $ type = $ this -> convertTo ( 'type' , $ raw [ 'type' ] ) ; $ tmp_name = $ this -> convertTo ( 'tmp_name' , $ raw [ 'tmp_name' ] ) ; $ error = $ this -> convertTo ( 'error' , $ raw [ 'error' ] ) ; $ size = $ this -> convertTo ( 'size' , $ raw [ 'size' ] ) ; $ files = $ this -> mergeAll ( $ name , $ type , $ tmp_name , $ error , $ size ) ; foreach ( $ files as $ k => $ v ) $ files [ $ k ] = \ Asgard \ Http \ HttpFile :: createFromArray ( $ v ) ; } else $ files = \ Asgard \ Http \ HttpFile :: createFromArray ( $ raw ) ; } else { foreach ( $ raw as $ k => $ v ) $ raw [ $ k ] = $ this -> parseFiles ( $ v ) ; $ files = $ raw ; } return $ files ; }
Parse FILE input and return HttpFile objects.
@param  array  $raw
@return array
Parse FILE input and return HttpFile objects .