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

VALID

Methods

__construct(string|object $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 successfully uploaded?

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

No description

Details

at line 32
__construct(string|object $label = null, bool $multiple = false)

No description

Parameters

string|object $label
bool $multiple

at line 55
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 64
string getHtmlName()

Returns HTML name of control.

Return Value

string

at line 74
Control setValue(mixed $value)

internal  
 

No description

Parameters

mixed $value

Return Value

Control

at line 83
bool isFilled()

Has been any file uploaded?

Return Value

bool

at line 94
bool isOk()

Have been all files successfully uploaded?

Return Value

bool

at line 105
BaseControl addRule(callable|string $validator, string|object $errorMessage = null, $arg = null)

No description

Parameters

callable|string $validator
string|object $errorMessage
$arg

Return Value

BaseControl