「関数リファレンス/BcBaser getPageList」の版間の差分
提供: baserCMS公式ガイド
行26: | 行26: | ||
####コード | ####コード | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | + | <?php $pages = $this->BcBaser->getPageList($categoryId); ?> | |
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2015年4月26日 (日) 21:43時点における版
目次
説明
固定ページ機能で作成したページの一覧データを取得する。
使い方
$this->BcBaser->getPageList( [$categoryId], [$option]);
パラメータ
- (string)$categoryId
- 固定ページカテゴリID(初期値 : null)
- ※ 指定しない場合は全ページを取得 - 初期値:null
- (array)$option
conditions
: 検索条件(初期値 : array('Page.status' => 1))fields
: 取得フィールド(初期値 : array('title', 'url'))order
: 並び順(初期値 : array('Page.sort')) - 初期値:array()
戻り値
- (mixed)
- ページ一覧、または、false
用例
基本
コード
<?php $pages = $this->BcBaser->getPageList($categoryId); ?>