trait Validator

Methods

string
getValidatorMessage()

Get the last error message

bool
validateFunction(string $sName)

Validate a function name

bool
validateEvent(string $sName)

Validate an event name

bool
validateClass(string $sName)

Validate a class name

bool
validateMethod(string $sName)

Validate a method name

bool
validateUploadedFile(string $sName, array $aUploadedFile)

Validate an uploaded file

Details

at line line 24
string getValidatorMessage()

Get the last error message

Return Value

string The last error message

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

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

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

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

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