PHP Class Nette\Forms\Controls\UploadControl

Author: David Grudl
Inheritance: extends BaseControl
Mostra file Open project: nette/forms Class Usage Examples

Public Methods

Method Description
__construct ( $label = NULL, $multiple = FALSE )
getHtmlName ( ) : string Returns HTML name of control.
isFilled ( ) : boolean Has been any file uploaded?
isOk ( ) : boolean Have been all files succesfully uploaded?
loadHttpData ( ) : void Loads HTTP data.
setValue ( $value ) : self

Protected Methods

Method Description
attached ( $form ) : void This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.

Method Details

__construct() public method

public __construct ( $label = NULL, $multiple = FALSE )

attached() protected method

This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself.
protected attached ( $form ) : void
return void

getHtmlName() public method

Returns HTML name of control.
public getHtmlName ( ) : string
return string

isFilled() public method

Has been any file uploaded?
public isFilled ( ) : boolean
return boolean

isOk() public method

Have been all files succesfully uploaded?
public isOk ( ) : boolean
return boolean

loadHttpData() public method

Loads HTTP data.
public loadHttpData ( ) : void
return void

setValue() public method

public setValue ( $value ) : self
return self