PHP Class BcPageHelper

Inheritance: extends Helper
Mostrar archivo Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$Page Page ページモデル
$data array data
$helpers array ヘルパー

Public Methods

Method Description
__construct ( View $View ) construct
allowPublish ( $data ) : boolean 公開状態を取得する
content ( ) : void 固定ページのコンテンツを出力する
getNextLink ( string $title = '', array $options = [] ) : mixed ページカテゴリ間の次の記事へのリンクを取得する
getPageList ( $id, $level = null, $options = [] ) : array ページリストを取得する
getPrevLink ( string $title = '', array $options = [] ) : string | false ページカテゴリ間の前の記事へのリンクを取得する
getUrl ( array $page ) : string ページ機能用URLを取得する
nextLink ( string $title = '', array $options = [] ) : void ページカテゴリ間の次の記事へのリンクを出力する
prevLink ( string $title = '', array $options = [] ) : void ページカテゴリ間の前の記事へのリンクを出力する
treeList ( $datas, $recursive ) treeList

Protected Methods

Method Description
_getPageByNextOrPrev ( $lft, $parentId, string $type, boolean $overCategory = false ) : array 指定した固定ページデータの次、または、前のデータを取得する

Method Details

__construct() public method

construct
public __construct ( View $View )
$View View

_getPageByNextOrPrev() protected method

指定した固定ページデータの次、または、前のデータを取得する
protected _getPageByNextOrPrev ( $lft, $parentId, string $type, boolean $overCategory = false ) : array
$type string next Or prev
$overCategory boolean カテゴリをまたがるかどうか
return array 次、または、前の固定ページデータ

allowPublish() public method

公開状態を取得する
public allowPublish ( $data ) : boolean
return boolean 公開状態

content() public method

固定ページのコンテンツを出力する
public content ( ) : void
return void

getPageList() public method

ページリストを取得する
public getPageList ( $id, $level = null, $options = [] ) : array
return array

getUrl() public method

ページ機能用URLを取得する
public getUrl ( array $page ) : string
$page array 固定ページデータ
return string URL

treeList() public method

treeList
public treeList ( $datas, $recursive )

Property Details

$Page public_oe property

ページモデル
public Page $Page
return Page

$data public_oe property

data
public array $data
return array

$helpers public_oe property

ヘルパー
public array $helpers
return array