PHP Class ContentsController

Inheritance: extends AppController
Datei anzeigen Open project: baserproject/basercms

Public Properties

Property Type Description
$components array コンポーネント
$uses array モデル

Public Methods

Method Description
admin_add ( $alias = false ) : void 新規コンテンツ登録(AJAX)
admin_ajax_change_status ( ) : boolean 公開状態を変更する
admin_ajax_contents_info ( ) コンテンツ情報を取得する
admin_ajax_delete ( ) : boolean コンテンツ削除(論理削除)
admin_ajax_exists ( $id ) 指定したIDのコンテンツが存在するか確認する ゴミ箱のものは無視
admin_ajax_get_content_folder_list ( $siteId ) サイトに紐付いたフォルダリストを取得
admin_ajax_get_full_url ( $id )
admin_ajax_move ( ) 並び順を移動する
admin_ajax_rename ( ) リネーム
admin_ajax_trash_empty ( ) : boolean ゴミ箱を空にする
admin_ajax_trash_return ( ) : mixed ゴミ箱のコンテンツを戻す
admin_delete ( ) コンテンツ削除(論理削除)
admin_edit ( ) : void コンテンツ編集
admin_edit_alias ( $id ) エイリアスを編集する
admin_empty ( ) : boolean プラグイン等と関連付けられていない素のコンテンツをゴミ箱より消去する
admin_exists_content_by_url ( ) : mixed 指定したURLのパス上のコンテンツでフォルダ以外が存在するか確認
admin_index ( ) コンテンツ一覧
admin_trash_index ( ) ゴミ箱内のコンテンツ一覧を表示する
beforeFilter ( )
view ( $plugin, $type ) コンテンツ表示

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 | mixed 公開状態を変更する
_createAdminIndexConditionsByTable ( $currentSiteId, $data ) : array テーブル表示用の検索条件を生成する
_createAdminIndexConditionsByTrash ( ) : array ゴミ箱用の検索条件を生成する
_createAdminIndexConditionsByTree ( $currentSiteId ) : array ツリー表示用の検索条件を生成する
_delete ( integer $id, boolean $useFlashMessage = false ) : boolean コンテンツを削除する(論理削除)

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 | mixed
$id integer
$status boolean
return boolean | mixed

_createAdminIndexConditionsByTable() protected method

テーブル表示用の検索条件を生成する
protected _createAdminIndexConditionsByTable ( $currentSiteId, $data ) : array
return array

_createAdminIndexConditionsByTrash() protected method

ゴミ箱用の検索条件を生成する

_createAdminIndexConditionsByTree() protected method

ツリー表示用の検索条件を生成する
protected _createAdminIndexConditionsByTree ( $currentSiteId ) : array
return array

_delete() protected method

※ エイリアスの場合は直接削除
protected _delete ( integer $id, boolean $useFlashMessage = false ) : boolean
$id integer
$useFlashMessage boolean
return boolean

admin_add() public method

新規コンテンツ登録(AJAX)
public admin_add ( $alias = false ) : void
return void

admin_ajax_change_status() public method

公開状態を変更する

admin_ajax_contents_info() public method

コンテンツ情報を取得する

admin_ajax_delete() public method

コンテンツ削除(論理削除)
public admin_ajax_delete ( ) : boolean
return boolean

admin_ajax_exists() public method

指定したIDのコンテンツが存在するか確認する ゴミ箱のものは無視
public admin_ajax_exists ( $id )
$id

admin_ajax_get_content_folder_list() public method

サイトに紐付いたフォルダリストを取得
public admin_ajax_get_content_folder_list ( $siteId )
$siteId

admin_ajax_get_full_url() public method

public admin_ajax_get_full_url ( $id )

admin_ajax_move() public method

並び順を移動する
public admin_ajax_move ( )

admin_ajax_rename() public method

新規登録時の初回リネーム時は、name にも保存する
public admin_ajax_rename ( )

admin_ajax_trash_empty() public method

ゴミ箱を空にする
public admin_ajax_trash_empty ( ) : boolean
return boolean

admin_ajax_trash_return() public method

ゴミ箱のコンテンツを戻す
public admin_ajax_trash_return ( ) : mixed
return mixed Site Id Or false

admin_delete() public method

コンテンツ削除(論理削除)
public admin_delete ( )

admin_edit() public method

コンテンツ編集
public admin_edit ( ) : void
return void

admin_edit_alias() public method

エイリアスを編集する
public admin_edit_alias ( $id )

admin_empty() public method

プラグイン等と関連付けられていない素のコンテンツをゴミ箱より消去する
public admin_empty ( ) : boolean
return boolean

admin_exists_content_by_url() public method

指定したURLのパス上のコンテンツでフォルダ以外が存在するか確認

admin_index() public method

コンテンツ一覧
public admin_index ( )

admin_trash_index() public method

ゴミ箱内のコンテンツ一覧を表示する
public admin_trash_index ( )

beforeFilter() public method

public beforeFilter ( )

view() public method

コンテンツ表示
public view ( $plugin, $type )
$plugin
$type

Property Details

$components public_oe property

コンポーネント
public array $components
return array

$uses public_oe property

モデル
public array $uses
return array