class FileUpload extends Request

Traits

Methods

string
getVersion()

Get the Jaxon library version number

from Config
void
setOption(string $sName, mixed $sValue)

Set the value of a config option

from Config
void
setOptions(array $aOptions, string $sKeys = '')

Set the values of an array of config options

from Config
mixed
getOption(string $sName, mixed $xDefault = null)

Get the value of a config option

from Config
bool
hasOption(string $sName)

Check the presence of a config option

from Config
array
getOptionNames(string $sPrefix)

Get the names of the options matching a given prefix

from Config
Config
newConfig()

Create a new the config manager

from Config
string
getScript()

Generate client side javascript code for the registered browser events

string
generateHash()

Generate a hash for the registered browser events

boolean
isRequest()

Return true if the object is a request plugin. Always return true here.

from Request
boolean
isResponse()

Return true if the object is a response plugin. Always return false here.

from Plugin
string
getName()

Return the name of this plugin

mixed
register($aArgs)

Register a browser event

boolean
canProcessRequest()

Check if this plugin can process the incoming Jaxon request

boolean
processRequest()

Process the uploaded files into the HTTP request

string
getValidatorMessage()

Get the last error message

from Validator
bool
validateFunction(string $sName)

Validate a function name

from Validator
bool
validateEvent(string $sName)

Validate an event name

from Validator
bool
validateClass(string $sName)

Validate a class name

from Validator
bool
validateMethod(string $sName)

Validate a method name

from Validator
bool
validateUploadedFile(string $sName, array $aUploadedFile)

Validate an uploaded file

from Validator
string
trans(string $sText, array $aPlaceHolders = array(), string $sLanguage = null)

Get a translated string

__construct()

Read uploaded files info from the $_FILES global var

void
setFileFilter(Closure $fFileFilter)

Filter uploaded file name

array
getUploadedFiles()

Get the uploaded files

boolean
saveUploadedFiles()

Check uploaded files validity and move them to the user dir

Details

in Config at line line 24
string getVersion()

Get the Jaxon library version number

Return Value

string The version number

in Config at line line 37
void setOption(string $sName, mixed $sValue)

Set the value of a config option

Parameters

string $sName The option name
mixed $sValue The option value

Return Value

void

in Config at line line 50
void setOptions(array $aOptions, string $sKeys = '')

Set the values of an array of config options

Parameters

array $aOptions The config options
string $sKeys The keys of the options in the array

Return Value

void

in Config at line line 63
mixed getOption(string $sName, mixed $xDefault = null)

Get the value of a config option

Parameters

string $sName The option name
mixed $xDefault The default value, to be returned if the option is not defined

Return Value

mixed The option value, or null if the option is unknown

in Config at line line 75
bool hasOption(string $sName)

Check the presence of a config option

Parameters

string $sName The option name

Return Value

bool True if the option exists, and false if not

in Config at line line 87
array getOptionNames(string $sPrefix)

Get the names of the options matching a given prefix

Parameters

string $sPrefix The prefix to match

Return Value

array The options matching the prefix

in Config at line line 97
Config newConfig()

Create a new the config manager

Return Value

Config The config manager

at line line 307
string getScript()

Generate client side javascript code for the registered browser events

Return Value

string

at line line 297
string generateHash()

Generate a hash for the registered browser events

Return Value

string

in Request at line line 47
boolean isRequest()

Return true if the object is a request plugin. Always return true here.

Return Value

boolean

in Plugin at line line 60
boolean isResponse()

Return true if the object is a response plugin. Always return false here.

Return Value

boolean

at line line 265
string getName()

Return the name of this plugin

Return Value

string

at line line 287
mixed register($aArgs)

Register a browser event

Parameters

$aArgs

Return Value

mixed

at line line 317
boolean canProcessRequest()

Check if this plugin can process the incoming Jaxon request

Return Value

boolean

at line line 327
boolean processRequest()

Process the uploaded files into the HTTP request

Return Value

boolean

in Validator at line line 24
string getValidatorMessage()

Get the last error message

Return Value

string The last error message

in Validator at line line 36
bool validateFunction(string $sName)

Validate a function name

Parameters

string $sName The function name

Return Value

bool True if the function name is valid, and false if not

in Validator at line line 48
bool validateEvent(string $sName)

Validate an event name

Parameters

string $sName The event name

Return Value

bool True if the event name is valid, and false if not

in Validator at line line 60
bool validateClass(string $sName)

Validate a class name

Parameters

string $sName The class name

Return Value

bool True if the class name is valid, and false if not

in Validator at line line 72
bool validateMethod(string $sName)

Validate a method name

Parameters

string $sName The function name

Return Value

bool True if the method name is valid, and false if not

in Validator at line line 85
bool validateUploadedFile(string $sName, array $aUploadedFile)

Validate an uploaded file

Parameters

string $sName The uploaded file variable name
array $aUploadedFile The file data received in the $_FILES array

Return Value

bool True if the file data are valid, and false if not

in Translator at line line 30
string trans(string $sText, array $aPlaceHolders = array(), string $sLanguage = null)

Get a translated string

Parameters

string $sText The key of the translated string
array $aPlaceHolders The placeholders of the translated string
string $sLanguage The language of the translated string

Return Value

string The translated string

at line line 50
__construct()

Read uploaded files info from the $_FILES global var

at line line 71
void setFileFilter(Closure $fFileFilter)

Filter uploaded file name

Parameters

Closure $fFileFilter The closure which filters filenames

Return Value

void

at line line 275
array getUploadedFiles()

Get the uploaded files

Return Value

array

at line line 349
boolean saveUploadedFiles()

Check uploaded files validity and move them to the user dir

Return Value

boolean