PHP Class BlogPostsController

Inheritance: extends BlogAppController
ファイルを表示 Open project: baserproject/basercms

Public Properties

Property Type Description
$blogContent array ブログコンテンツデータ
$components array コンポーネント
$helpers array ヘルパー
$name string クラス名
$subMenuElements array サブメニューエレメント
$uses array モデル

Public Methods

Method Description
admin_add ( integer $blogContentId ) : void [ADMIN] 登録処理
admin_ajax_copy ( $blogContentId, integer $id = null ) : void [ADMIN] コピー
admin_ajax_delete ( integer $blogContentId, integer $id = null ) : void [ADMIN] 削除処理 (ajax)
admin_ajax_publish ( string $blogContentId, $id ) : void [ADMIN] 有効状態にする(AJAX)
admin_ajax_unpublish ( string $blogContentId, $id ) : void [ADMIN] 無効状態にする(AJAX)
admin_delete ( integer $blogContentId, integer $id = null ) : void [ADMIN] 削除処理
admin_edit ( integer $blogContentId, integer $id ) : void [ADMIN] 編集処理
admin_index ( $blogContentId ) : void [ADMIN] 一覧表示
beforeFilter ( ) : void beforeFilter
beforeRender ( ) : void beforeRender

Protected Methods

Method Description
_batch_del ( array $ids ) : boolean 一括削除
_batch_publish ( array $ids ) : boolean 一括公開
_batch_unpublish ( array $ids ) : boolean 一括非公開
_changeStatus ( integer $id, boolean $status ) : boolean ステータスを変更する
_createAdminIndexConditions ( array $blogContentId, array $data ) : array ページ一覧用の検索条件を生成する
_del ( integer $id ) : boolean データを削除する
_setAdminIndexViewData ( ) : void 一覧の表示用データをセットする

Method Details

_batch_del() protected method

一括削除
protected _batch_del ( array $ids ) : boolean
$ids array
return boolean

_batch_publish() protected method

一括公開
protected _batch_publish ( array $ids ) : boolean
$ids array
return boolean

_batch_unpublish() protected method

一括非公開
protected _batch_unpublish ( array $ids ) : boolean
$ids array
return boolean

_changeStatus() protected method

ステータスを変更する
protected _changeStatus ( integer $id, boolean $status ) : boolean
$id integer
$status boolean
return boolean

_createAdminIndexConditions() protected method

ページ一覧用の検索条件を生成する
protected _createAdminIndexConditions ( array $blogContentId, array $data ) : array
$blogContentId array
$data array
return array $conditions

_del() protected method

データを削除する
protected _del ( integer $id ) : boolean
$id integer
return boolean

_setAdminIndexViewData() protected method

一覧の表示用データをセットする
protected _setAdminIndexViewData ( ) : void
return void

admin_add() public method

[ADMIN] 登録処理
public admin_add ( integer $blogContentId ) : void
$blogContentId integer
return void

admin_ajax_copy() public method

[ADMIN] コピー
public admin_ajax_copy ( $blogContentId, integer $id = null ) : void
$id integer
return void

admin_ajax_delete() public method

[ADMIN] 削除処理 (ajax)
public admin_ajax_delete ( integer $blogContentId, integer $id = null ) : void
$blogContentId integer
$id integer
return void

admin_ajax_publish() public method

[ADMIN] 有効状態にする(AJAX)
public admin_ajax_publish ( string $blogContentId, $id ) : void
$blogContentId string
return void

admin_ajax_unpublish() public method

[ADMIN] 無効状態にする(AJAX)
public admin_ajax_unpublish ( string $blogContentId, $id ) : void
$blogContentId string
return void

admin_delete() public method

[ADMIN] 削除処理
public admin_delete ( integer $blogContentId, integer $id = null ) : void
$blogContentId integer
$id integer
return void

admin_edit() public method

[ADMIN] 編集処理
public admin_edit ( integer $blogContentId, integer $id ) : void
$blogContentId integer
$id integer
return void

admin_index() public method

[ADMIN] 一覧表示
public admin_index ( $blogContentId ) : void
return void

beforeFilter() public method

beforeFilter
public beforeFilter ( ) : void
return void

beforeRender() public method

beforeRender
public beforeRender ( ) : void
return void

Property Details

$blogContent public_oe property

ブログコンテンツデータ
public array $blogContent
return array

$components public_oe property

コンポーネント
Deprecation: useViewCache 5.0.0 since 4.0.0 CakePHP3では、ビューキャッシュは廃止となる為、別の方法に移行する
public array $components
return array

$helpers public_oe property

ヘルパー
public array $helpers
return array

$name public_oe property

クラス名
public string $name
return string

$subMenuElements public_oe property

サブメニューエレメント
public array $subMenuElements
return array

$uses public_oe property

モデル
public array $uses
return array