Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

EOOS Automotive R22-08 is released in version v0.10.0

The second official release of EOOS Automotive that is qualified for POSIX and WIN32 compatible operating systems and based on interfaces designed for EOOS RT – real time operating system.

Class «DomBuilder\Element\Input\File»

input type=file – file upload control.

The input element with a type attribute whose value is "file" represents a list of file items, each consisting of a file name, a file type, and a file body (the contents of the file).

All implemented interfaces:

Object Builder Property Attribute Traverse Fetch Search Tester Field

public \StdClass file();

Returns checked uploaded file information.

Method returns a file information which gets after checking.

Returns:
\StdClass — file information.

public int|File fileMaxSize(int $size=NULL);

Returns or sets available maximum rage size for file size.

Parameters:
int $size — maximum size in byte.

Returns:
int|File — a current value or this element.

public int|File fileMinSize(int $size=NULL);

Returns or sets available minimum rage size for file size.

Parameters:
int $size — minimum size in byte.

Returns:
int|File — a current value or this element.

public File fileSize(int $min, int $max);

Sets an available rage for file size.

Parameters:
int $min — minimum size in byte.
int $max — maximum size in byte.

Returns:
File — this element.

public \StdClass value(mixed $value=NULL, string $lang=NULL);

Returns unchecked uploaded file information.

The method returns uploaded file information in StdClass object which contains a name, path, type, and size fields.

Parameters:
mixed $value — always should be NULL.
string $lang — always should be NULL.

Returns:
\StdClass — file information.

Back to class list