Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class NUploadControl

Text box and browse button that allow users to select a file to upload to the server.

NObject
Extended by NComponent implements IComponent
Extended by NFormControl implements IFormControl
Extended by NUploadControl
Package: Nette\Forms\Controls
Author: David Grudl
Located at Forms/Controls/UploadControl.php
Methods summary
public
# __construct( string $label = NULL )

Parameters

$label
string
label

Overrides

NFormControl::__construct()
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

$form
IComponent

Overrides

NFormControl::attached()
public NUploadControl
# setValue( array|NHttpUploadedFile $value )

Sets control's value.

Sets control's value.

Parameters

$value
array|NHttpUploadedFile

Returns

NUploadControl

Overrides

NFormControl::setValue()
public boolean
# isFilled( )

Has been any file uploaded?

Has been any file uploaded?

Returns

boolean

Overrides

NFormControl::isFilled()
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()
Methods inherited from NComponent
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from IComponent
setParent()
Constants inherited from IComponent
NAME_SEPARATOR
Properties inherited from NFormControl
$caption, $control, $idMask, $label, $value
Magic properties inherited from NFormControl
$control, $controlPrototype, $defaultValue, $disabled, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $options, $required, $rules, $translator, $value
Magic properties inherited from NComponent
$name, $parent
Magic properties inherited from NObject
$reflection
Nette Framework 2.0.18 (for PHP 5.2, prefixed) API documentation generated by ApiGen 2.8.0