Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Classes

  • AcceptHeader
  • AcceptHeaderItem
  • ApacheRequest
  • BinaryFileResponse
  • Cookie
  • ExpressionRequestMatcher
  • FileBag
  • HeaderBag
  • IpUtils
  • JsonResponse
  • ParameterBag
  • RedirectResponse
  • Request
  • RequestMatcher
  • RequestStack
  • Response
  • ResponseHeaderBag
  • ServerBag
  • StreamedResponse

Interfaces

  • RequestMatcherInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class FileBag

FileBag is a container for uploaded files.

Symfony\Component\HttpFoundation\ParameterBag implements IteratorAggregate, Countable
Extended by Symfony\Component\HttpFoundation\FileBag
Namespace: Symfony\Component\HttpFoundation
Author: Fabien Potencier fabien@symfony.com
Author: Bulat Shakirzyanov mallluhuct@gmail.com
Api
Located at FileBag.php
Methods summary
public
# __construct( array $parameters = array() )

Constructor.

Constructor.

Parameters

$parameters
An array of HTTP files

Api

Overrides

Symfony\Component\HttpFoundation\ParameterBag::__construct()
public
# replace( array $files = array() )

Replaces the current parameters by a new set.

Replaces the current parameters by a new set.

Parameters

$files
$parameters An array of parameters

Api

Overrides

Symfony\Component\HttpFoundation\ParameterBag::replace()
public
# set( string $key, mixed $value )

Sets a parameter by name.

Sets a parameter by name.

Parameters

$key
The key
$value
The value

Api

Overrides

Symfony\Component\HttpFoundation\ParameterBag::set()
public
# add( array $files = array() )

Adds parameters.

Adds parameters.

Parameters

$files
$parameters An array of parameters

Api

Overrides

Symfony\Component\HttpFoundation\ParameterBag::add()
protected array
# convertFileInformation( array|Symfony\Component\HttpFoundation\File\UploadedFile $file )

Converts uploaded files to UploadedFile instances.

Converts uploaded files to UploadedFile instances.

Parameters

$file
A (multi-dimensional) array of uploaded file information

Returns

array
A (multi-dimensional) array of UploadedFile instances
protected array
# fixPhpFilesArray( array $data )

Fixes a malformed PHP $_FILES array.

Fixes a malformed PHP $_FILES array.

PHP has a bug that the format of the $_FILES array differs, depending on whether the uploaded file fields had normal field names or array-like field names ("normal" vs. "parent[child]").

This method fixes the array to look like the "normal" $_FILES array.

It's safe to pass an already converted array, in which case this method just returns the original array unmodified.

Parameters

$data

Returns

array
Methods inherited from Symfony\Component\HttpFoundation\ParameterBag
all(), count(), filter(), get(), getAlnum(), getAlpha(), getBoolean(), getDigits(), getInt(), getIterator(), has(), keys(), remove()
Properties inherited from Symfony\Component\HttpFoundation\ParameterBag
$parameters
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen