UploadControl
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 |
deprecated VALID |
|
Methods
__construct(string|Stringable|null $label = null, bool $multiple = false)
No description
void
loadHttpData()
Loads HTTP data.
string
getHtmlName()
Returns HTML name of control.
mixed
getValue()
Returns control's value.
bool
isFilled()
Has been any file uploaded?
setNullable(bool $value = true)
Sets whether getValue() returns null instead of FileUpload with error UPLOAD_ERR_NO_FILE.
bool
isNullable()
No description
bool
isOk()
Have been all files successfully uploaded?
addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)
No description
Details
at line 35
__construct(string|Stringable|null $label = null, bool $multiple = false)
No description
at line 58
void
loadHttpData()
Loads HTTP data.
at line 64
string
getHtmlName()
Returns HTML name of control.
at line 74
Control
setValue(mixed $value)
internal |
No description
at line 80
mixed
getValue()
Returns control's value.
at line 89
bool
isFilled()
Has been any file uploaded?
at line 98
UploadControl
setNullable(bool $value = true)
Sets whether getValue() returns null instead of FileUpload with error UPLOAD_ERR_NO_FILE.
at line 105
bool
isNullable()
No description
at line 115
bool
isOk()
internal |
Have been all files successfully uploaded?
at line 126
BaseControl
addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)
No description