PHP Class Habari\FormControlFile

Inheritance: extends FormControl
Show file Open project: habari/system

Public Methods

Method Description
__get ( string $name ) : mixed Magic function __get returns properties for this object, or passes it on to the parent class Potential valid properties: tmp_file: The uploaded file
get ( boolean $forvalidation = true ) Return the HTML construction of the control, after changing the encoding of the parent form to allow for file uploads.
save ( string $storage = null ) Store this control's value under the control's specified key.

Method Details

__get() public method

Magic function __get returns properties for this object, or passes it on to the parent class Potential valid properties: tmp_file: The uploaded file
public __get ( string $name ) : mixed
$name string The parameter to retrieve
return mixed The value of the parameter

get() public method

Return the HTML construction of the control, after changing the encoding of the parent form to allow for file uploads.
public get ( boolean $forvalidation = true )
$forvalidation boolean True if the control should output validation information with the control.

save() public method

Store this control's value under the control's specified key.
public save ( string $storage = null )
$storage string (optional) A storage location to store the control data