\Fuman_Validate_Email

Checks if email is valid by syntax

Summary

Methods
Properties
Constants
setErrorColumnName()
getErrorColumnName()
isValid()
getErrorCode()
hasErrorCode()
setTranslationKey()
getMessage()
No public properties found
INVALID
No protected methods found
$_errorCode
$_errorArguments
$_errorColumnName
$_translationKeys
$_pattern
N/A
No private methods found
No private properties found
N/A

Constants

INVALID

INVALID

Error code invalid

Properties

$_errorCode

$_errorCode : string

Type

string

$_errorArguments

$_errorArguments : \stdClass

Type

\stdClass

$_errorColumnName

$_errorColumnName : 

Type

$_translationKeys

$_translationKeys : 

Type

$_pattern

$_pattern : 

Type

Methods

setErrorColumnName()

setErrorColumnName(string  $errorColumnName) 

Sets the column name on which the validation error should be added

Parameters

string $errorColumnName

getErrorColumnName()

getErrorColumnName() : null|string

Gets the column name on which the validation error should be added

Returns

null|string

isValid()

isValid(string  $value) : boolean

Is valid

Parameters

string $value

Returns

boolean

getErrorCode()

getErrorCode() : integer|null

Gets error code

Returns

integer|null

hasErrorCode()

hasErrorCode() : boolean

Has error code.

Returns

boolean

setTranslationKey()

setTranslationKey(string  $errorCode, string  $key) 

Sets translations key for error code

Parameters

string $errorCode
string $key

getMessage()

getMessage() : string

Gets message

Returns

string