PHP Class Webiny\Component\Http\Request\Files

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
get ( string $name, null | integer $arrayOffset = null ) : File Get the File object for the given $name.

Private Methods

Méthode Description
createFileObject ( array $file, null $arrayOffset = null ) : File Create the File object.
getFileObject ( string $name, null $arrayOffset = null ) : boolean | File Check if we have already create a File object of the given $name.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

get() public méthode

If you have a multi-dimensional upload field name, than you should pass the optional $arrayOffset param to get the right File object.
public get ( string $name, null | integer $arrayOffset = null ) : File
$name string Name of the upload field.
$arrayOffset null | integer Optional array offset for multi-dimensional upload fields.
Résultat Webiny\Component\Http\Request\Files\File