PHP 클래스 Symfony\Component\HttpFoundation\FileBag

저자: Fabien Potencier ([email protected])
저자: Bulat Shakirzyanov ([email protected])
상속: extends Symfony\Component\HttpFoundation\ParameterBag
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $parameters = [] ) Constructor.
add ( array $files = [] ) (non-PHPdoc)
replace ( array $files = [] ) (non-PHPdoc)
set ( $key, $value ) (non-PHPdoc)

보호된 메소드들

메소드 설명
convertFileInformation ( array | Symfony\Component\HttpFoundation\File\UploadedFile $file ) : array Converts uploaded files to UploadedFile instances.
fixPhpFilesArray ( array $data ) : array Fixes a malformed PHP $_FILES array.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $parameters = [] )
$parameters array An array of HTTP files

add() 공개 메소드

(non-PHPdoc)
또한 보기: Symfony\Component\HttpFoundation\ParameterBag::add()
public add ( array $files = [] )
$files array

convertFileInformation() 보호된 메소드

Converts uploaded files to UploadedFile instances.
protected convertFileInformation ( array | Symfony\Component\HttpFoundation\File\UploadedFile $file ) : array
$file array | Symfony\Component\HttpFoundation\File\UploadedFile A (multi-dimensional) array of uploaded file information
리턴 array A (multi-dimensional) array of UploadedFile instances

fixPhpFilesArray() 보호된 메소드

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.
protected fixPhpFilesArray ( array $data ) : array
$data array
리턴 array

replace() 공개 메소드

(non-PHPdoc)
또한 보기: Symfony\Component\HttpFoundation\ParameterBag::replace()
public replace ( array $files = [] )
$files array

set() 공개 메소드

(non-PHPdoc)
또한 보기: Symfony\Component\HttpFoundation\ParameterBag::set()
public set ( $key, $value )