baserCMS クラスリファレンス

BcPageHelper extends Helper
in package
Uses BcEventDispatcherTrait, BcContainerTrait

BcPageHelper

Table of Contents

Properties

$BcContents  : BcContentsHelper
$helpers  : array<string|int, mixed>
ヘルパー
$_View  : View
View

Methods

allowPublish()  : bool
公開状態を取得する
dispatchLayerEvent()  : bool|Event
イベントを発火
getPageList()  : array<string|int, mixed>
ページリストを取得する 戻り値は、固定ページ、または、コンテンツフォルダが対象
getService()  : array<string|int, mixed>|mixed|object
Get Service
getUrl()  : string
ページ機能用URLを取得する
hasService()  : bool
Has Service
initialize()  : void
initialize

Properties

$helpers

ヘルパー

public array<string|int, mixed> $helpers = ['BaserCore.BcContents']

Methods

allowPublish()

公開状態を取得する

public allowPublish(mixed $data) : bool
Parameters
$data : mixed
Return values
bool

公開状態

dispatchLayerEvent()

イベントを発火

public dispatchLayerEvent(string $name[, array<string|int, mixed> $data = [] ][, mixed $options = [] ]) : bool|Event
Parameters
$name : string
$data : array<string|int, mixed> = []
$options : mixed = []
Tags
checked
unitTest
noTodo
Return values
bool|Event

getPageList()

ページリストを取得する 戻り値は、固定ページ、または、コンテンツフォルダが対象

public getPageList(mixed $id[, mixed $level = null ][, mixed $options = [] ]) : array<string|int, mixed>
Parameters
$id : mixed
$level : mixed = null
$options : mixed = []
Tags
checked
noTodo
Return values
array<string|int, mixed>

getService()

Get Service

public getService( $service) : array<string|int, mixed>|mixed|object
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

getUrl()

ページ機能用URLを取得する

public getUrl(Page $page) : string
Parameters
$page : Page

固定ページデータ

Tags
checked
noTodo
Return values
string

URL

hasService()

Has Service

public hasService( $service) : bool
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
bool

initialize()

initialize

public initialize(array<string|int, mixed> $config) : void
Parameters
$config : array<string|int, mixed>
Tags
checked
noTodo
unitTest

        
On this page

Search results