PHP Class Webiny\Component\Http\Request\Files

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

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

Private Methods

Method 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 method

Constructor.
public __construct ( )

get() public method

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.
return Webiny\Component\Http\Request\Files\File