class UploadControl extends BaseControl

Text box and browse button that allow users to select a file to upload to the server.

Constants

VALID

validation rule

Methods

__construct(string|Stringable|null $label = null, bool $multiple = false)

No description

void
loadHttpData()

Loads HTTP data.

string
getHtmlName()

Returns HTML name of control.

setValue(mixed $value)

No description

bool
isFilled()

Has been any file uploaded?

bool
isOk()

Have been all files succesfully uploaded?

addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)

Adds a validation rule.

Details

at line 29
__construct(string|Stringable|null $label = null, bool $multiple = false)

No description

Parameters

string|Stringable|null $label
bool $multiple

at line 49
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 58
string getHtmlName()

Returns HTML name of control.

Return Value

string

at line 67
Control setValue(mixed $value)

internal  
 

No description

Parameters

mixed $value

Return Value

Control

at line 76
bool isFilled()

Has been any file uploaded?

Return Value

bool

at line 87
bool isOk()

Have been all files succesfully uploaded?

Return Value

bool

at line 99
BaseControl addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)

Adds a validation rule.

Parameters

callable|string $validator
string|Stringable|null $errorMessage
mixed $arg

Return Value

BaseControl