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($label = null, bool $multiple = false)

No description

void
loadHttpData()

Loads HTTP data.

string
getHtmlName()

Returns HTML name of control.

setValue(mixed $value)

Sets control's value.

bool
isFilled()

Is control filled?

bool
isOk()

Have been all files succesfully uploaded?

addRule($validator, $errorMessage = null, $arg = null)

Adds a validation rule.

Details

at line 30
__construct($label = null, bool $multiple = false)

Parameters

$label
bool $multiple

at line 48
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 57
string getHtmlName()

Returns HTML name of control.

Return Value

string

at line 67
IControl setValue(mixed $value)

Sets control's value.

Parameters

mixed $value

Return Value

IControl

at line 76
bool isFilled()

Is control filled?

Return Value

bool

at line 87
bool isOk()

Have been all files succesfully uploaded?

Return Value

bool

at line 98
BaseControl addRule($validator, $errorMessage = null, $arg = null)

Adds a validation rule.

Parameters

$validator
$errorMessage
$arg

Return Value

BaseControl