UploadControl
class UploadControl extends BaseControl
Text box and browse button that allow users to select a file to upload to the server.
Methods
__construct($label = NULL, $multiple = FALSE)
No description
void
attached($form)
This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.
void
loadHttpData()
Loads HTTP data.
string
getHtmlName()
Returns HTML name of control.
void
setValue($value)
No description
bool
isFilled()
Has been any file uploaded?
static bool
static bool
static bool
Details
at line 26
__construct($label = NULL, $multiple = FALSE)
No description
at line 40
protected void
attached($form)
This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.
at line 56
void
loadHttpData()
Loads HTTP data.
at line 69
string
getHtmlName()
Returns HTML name of control.
at line 78
void
setValue($value)
No description
at line 88
bool
isFilled()
Has been any file uploaded?
at line 102
static bool
validateFileSize(UploadControl $control, $limit)
internal |
Is file size in limit?
at line 118
static bool
validateMimeType(UploadControl $control, $mimeType)
internal |
Has file specified mime type?
at line 136
static bool
validateImage(UploadControl $control)
internal |
Is file image?