Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • BaseControl
  • Button
  • Checkbox
  • CheckboxList
  • ChoiceControl
  • CsrfProtection
  • HiddenField
  • ImageButton
  • MultiChoiceControl
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

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
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Nette\Forms\Controls\UploadControl
Namespace: Nette\Forms\Controls
Located at Forms/Controls/UploadControl.php
Methods summary
public
# __construct( string|object $label = null, boolean $multiple = false )

Parameters

$label
$multiple

Overrides

Nette\Forms\Controls\BaseControl::__construct()
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

$form

Overrides

Nette\Forms\Controls\BaseControl::attached()
public
# loadHttpData( )

Loads HTTP data.

Loads HTTP data.

Overrides

Nette\Forms\Controls\BaseControl::loadHttpData()
public string
# getHtmlName( )

Returns HTML name of control.

Returns HTML name of control.

Returns

string
string

Overrides

Nette\Forms\Controls\BaseControl::getHtmlName()
public Nette\Forms\Controls\UploadControl
# setValue( mixed $value )

Parameters

$value

Returns

Nette\Forms\Controls\UploadControl
static

Internal

Overrides

Nette\Forms\Controls\BaseControl::setValue()
public boolean
# isFilled( )

Has been any file uploaded?

Has been any file uploaded?

Returns

boolean
bool

Overrides

Nette\Forms\Controls\BaseControl::isFilled()
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()
Methods used from Nette\SmartObject
__callStatic(), __get(), __isset(), __set(), __unset(), getReflection()
Constants summary
string VALID

validation rule

validation rule

#':uploadControlValid'
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $disabled, $error, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $omitted, $options, $required, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0