Constants

STATUS_KEY_ACTIVE

STATUS_KEY_ACTIVE = 'status_1' : \const

状態のステータス(利用可能)

STATUS_CODE_ACTIVE

STATUS_CODE_ACTIVE = '1' : \const

状態のステータス(利用可能)

STATUS_KEY_NONACTIVE

STATUS_KEY_NONACTIVE = 'status_0' : \const

状態のステータス(利用不可)

STATUS_CODE_NONACTIVE

STATUS_CODE_NONACTIVE = '0' : \const

状態のステータス(利用不可)

STATUS_KEY_WAITING

STATUS_KEY_WAITING = 'status_2' : \const

状態のステータス(承認待ち)

STATUS_CODE_WAITING

STATUS_CODE_WAITING = '2' : \const

状態のステータス(承認待ち)

STATUS_KEY_APPROVED

STATUS_KEY_APPROVED = 'status_3' : \const

状態のステータス(承認済み⇒本人の確認待ち)

STATUS_CODE_APPROVED

STATUS_CODE_APPROVED = '3' : \const

状態のステータス(承認済み⇒本人の確認待ち)

LANGUAGE_KEY_AUTO

LANGUAGE_KEY_AUTO = 'auto' : \const

言語の自動

Properties

$actsAs

$actsAs : array

use behaviors

Type

array

$validate

$validate : array

Validation rules

Type

array

$belongsTo

$belongsTo : array

belongsTo associations

Type

array

Methods

beforeValidate()

beforeValidate(array  $options = array()) : boolean

Called during validation operations, before validation. Please note that custom validation rules can be defined in $validate.

Parameters

array $options

Options passed from Model::save().

Returns

boolean —

True if validate operation should continue, false to abort

beforeSave()

beforeSave(array  $options = array()) : boolean

Called before each save operation, after validation. Return a non-true result to halt the save.

Parameters

array $options

Options passed from Model::save().

Returns

boolean —

True if the operation should continue, false if it should abort

saveUserAttributeChoices()

saveUserAttributeChoices(array  $data) : boolean

会員項目の選択肢の登録 トランザクションは呼び出し元のUserAttribute->saveUserAttribute()で行う。

Parameters

array $data

リクエストデータ

Throws

\InternalErrorException

Returns

boolean —

Trueは成功。Falseはバリデーションエラー

validateRequestData()

validateRequestData(array  $data) : boolean

リクエストのバリデーション処理 UserAttributeChoiceとUserAttributeChoiceMapが必要

Parameters

array $data

received post data

Throws

\BadRequestException

Returns

boolean —

True on success, false on validation errors