Class NUploadControl
Text box and browse button that allow users to select a file to upload to the
server.
-
NObject
-
NComponent
implements
IComponent
-
NFormControl
implements
IFormControl
-
NUploadControl
Methods summary
public
|
|
protected
|
#
attached( IComponent $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.
This method will be called when the component (or component's parent) becomes
attached to a monitored object. Do not call this method yourself.
Parameters
Overrides
|
public
NUploadControl
|
|
public
boolean
|
#
isFilled( )
Has been any file uploaded?
Has been any file uploaded?
Returns
boolean
Overrides
|
public static
boolean
|
#
validateFileSize( NUploadControl $control, integer $limit )
FileSize validator: is file size in limit?
FileSize validator: is file size in limit?
Parameters
Returns
boolean
|
public static
boolean
|
#
validateMimeType( NUploadControl $control, array|string $mimeType )
MimeType validator: has file specified mime type?
MimeType validator: has file specified mime type?
Parameters
Returns
boolean
|
public static
boolean
|
|
Methods inherited from NFormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
cleanErrors(),
exportRules(),
getControl(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
getValue(),
hasErrors(),
isDisabled(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setRequired(),
setTranslator(),
translate(),
validateEqual(),
validateFilled(),
validateValid()
|
Methods inherited from NComponent
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Magic properties inherited from NFormControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$options,
$required,
$rules,
$translator,
$value
|