Class UploadControl
Text box and browse button that allow users to select a file to upload to the
server.
-
Nette\ComponentModel\Component
implements
Nette\ComponentModel\IComponent
uses
Nette\SmartObject
-
Nette\Forms\Controls\BaseControl
implements
Nette\Forms\IControl
-
Nette\Forms\Controls\UploadControl
Methods summary
public
|
#
__construct( string|object $label = null, boolean $multiple = false )
|
protected
|
#
attached( Nette\ComponentModel\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
|
|
public
string
|
#
getHtmlName( )
Returns HTML name of control.
Returns HTML name of control.
Returns
string string
Overrides
|
public
Nette\Forms\Controls\UploadControl
|
#
setValue( mixed $value )
Parameters
Returns
Internal
Overrides
|
public
boolean
|
#
isFilled( )
Has been any file uploaded?
Has been any file uploaded?
Returns
boolean bool
Overrides
|
public
boolean
|
#
isOk( )
Have been all files succesfully uploaded?
Have been all files succesfully uploaded?
Returns
boolean bool
|
Methods inherited from Nette\Forms\Controls\BaseControl
__call(),
addCondition(),
addConditionOn(),
addError(),
addRule(),
cleanErrors(),
enableAutoOptionalMode(),
extensionMethod(),
getControl(),
getControlPart(),
getControlPrototype(),
getError(),
getErrors(),
getForm(),
getHtmlId(),
getHttpData(),
getLabel(),
getLabelPart(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
getValue(),
hasErrors(),
isDisabled(),
isOmitted(),
isRequired(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlAttribute(),
setHtmlId(),
setOmitted(),
setOption(),
setRequired(),
setTranslator(),
translate(),
validate()
|
Methods inherited from Nette\ComponentModel\Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
Constants summary
string |
VALID
|
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$disabled,
$error,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$options,
$required,
$value
|