\SiteSettingValidateBehavior

SiteSettingValidate Behavior

Summary

Methods
Properties
Constants
setup()
No public properties found
No constants found
_validateRequired()
_hasValidationError()
_setValidationMessage()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setup()

setup(\Model  $model, array  $config = array()) : void

Setup this behavior with the specified configuration settings.

Parameters

\Model $model

Model using this behavior

array $config

Configuration settings for $model

_validateRequired()

_validateRequired(\Model  $model, array  $data, string  $key) : array

サイト設定の必須Validate処理

Parameters

\Model $model

ビヘイビア呼び出し元モデル

array $data

リクエストデータ配列

string $key

キー

Returns

array —

リクエストデータ

_hasValidationError()

_hasValidationError(\Model  $model, string  $key, integer  $langId) : boolean

validationMessageの有無

Parameters

\Model $model

ビヘイビア呼び出し元モデル

string $key

キー

integer $langId

言語ID

Returns

boolean

_setValidationMessage()

_setValidationMessage(\Model  $model, string  $key, integer  $langId, string  $message) : array

validationMessageのセット処理

Parameters

\Model $model

ビヘイビア呼び出し元モデル

string $key

キー

integer $langId

言語ID

string $message

メッセージ

Returns

array —

リクエストデータ