\ContentCommentBehavior

Summary for ContentComment Behavior

Summary

Methods
Properties
Constants
setup()
afterFind()
beforeDelete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__applyCnt()
$__isDeleted
N/A

Properties

$__isDeleted

$__isDeleted : boolean

Type

boolean — 削除済みか

Methods

setup()

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

setup

Parameters

\Model $model

モデル

array $settings

設定値

afterFind()

afterFind(\Model  $model, mixed  $results, boolean  $primary = false) : array

afterFind コンテンツコメント件数をセット

Parameters

\Model $model

モデル

mixed $results

Find結果

boolean $primary

primary

Returns

array —

$results

beforeDelete()

beforeDelete(\Model  $model, boolean  $cascade = true) : mixed

beforeDelete コンテンツが削除されたら、書いてあったコメントも削除

Parameters

\Model $model

Model using this behavior

boolean $cascade

If true records that depend on this record will also be deleted

Throws

\InternalErrorException

Returns

mixed —

False if the operation should abort. Any other result will continue.

__applyCnt()

__applyCnt(\Model  $model, mixed  $results, array  $conditions, string  $virtualFieldName) : array

件数をFind結果に付ける

Parameters

\Model $model

モデル

mixed $results

Find結果

array $conditions

条件

string $virtualFieldName

件数のバーチャルフィールド名

Throws

\InternalErrorException

Returns

array —

Find結果