\Fuman_Validate_ColumnExists

Checks if column on table exists

Summary

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

Constants

INVALID

INVALID

Error code invalid

INVALID_TABLE

INVALID_TABLE

Error code invalid table

INVALID_COLUMN

INVALID_COLUMN

Error code invalid column

Properties

$_fumanTable

$_fumanTable : 

Type

$_errorCode

$_errorCode : string

Type

string

$_errorArguments

$_errorArguments : \stdClass

Type

\stdClass

$_errorColumnName

$_errorColumnName : 

Type

$_translationKeys

$_translationKeys : 

Type

Methods

__construct()

__construct(string  $tableName, \Fuman_Table  $fumanTable) 

Constructor

Parameters

string $tableName
\Fuman_Table $fumanTable

isValid()

isValid(string  $value) : boolean

Is valid

Parameters

string $value

Returns

boolean

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

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