PHP Class BcPageHelper

Inheritance: extends Helper
Afficher le fichier Open project: baserproject/basercms Class Usage Examples

Méthodes publiques

Свойство Type Description
$Page Page ページモデル
$data array data
$helpers array ヘルパー

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

__construct() public méthode

construct
public __construct ( View $View )
$View View

_getPageByNextOrPrev() protected méthode

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

allowPublish() public méthode

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

content() public méthode

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

getPageList() public méthode

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

getUrl() public méthode

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

treeList() public méthode

treeList
public treeList ( $datas, $recursive )

Property Details

$Page public_oe property

ページモデル
public Page $Page
Résultat Page

$data public_oe property

data
public array $data
Résultat array

$helpers public_oe property

ヘルパー
public array $helpers
Résultat array