\ContentCommentsComponent

ContentComments Component

Summary

Methods
Properties
Constants
initialize()
startup()
beforeRender()
shutdown()
comment()
$components
START_LIMIT
MAX_LIMIT
No protected methods found
$_controller
N/A
__checkPermission()
__isCreatable()
__isEditable()
__readyData()
No private properties found
N/A

Constants

START_LIMIT

START_LIMIT

MAX_LIMIT

MAX_LIMIT

Properties

$components

$components : array

Other components

Type

array

$_controller

$_controller : \Controller

Type

\Controller — コントローラ

Methods

initialize()

initialize(\Controller  $controller) : void

Called before the Controller::beforeFilter().

Parameters

\Controller $controller

Instantiating controller

startup()

startup(\Controller  $controller) : void

Called after the Controller::beforeFilter() and before the controller action

Parameters

\Controller $controller

Controller with components to startup

beforeRender()

beforeRender(\Controller  $controller) : void

Called before the Controller::beforeRender(), and before the view class is loaded, and before Controller::render()

コンテンツコメントの一覧データをPaginatorで取得する

Parameters

\Controller $controller

Controller with components to beforeRender

Throws

\Exception

Paginatorによる例外

shutdown()

shutdown(\Controller  $controller) : void

Called after Controller::render() and before the output is printed to the browser.

Parameters

\Controller $controller

Controller with components to shutdown

comment()

comment() : boolean

コメントする

Returns

boolean —

成功 or 失敗

__checkPermission()

__checkPermission() : boolean

パーミッションがあるかチェック

Returns

boolean —

true:パーミッションあり or false:パーミッションなし

__isCreatable()

__isCreatable() : boolean

投稿許可ありか

Returns

boolean —

true:あり or false:なし

__isEditable()

__isEditable() : boolean

編集許可ありか

Returns

boolean —

true:あり or false:なし

__readyData()

__readyData() : array

dataの準備

Returns

array —

data