baserCMS クラスリファレンス

BcPageHelper extends Helper
in package
Uses BcEventDispatcherTrait, BcContainerTrait

BcPageHelper

Table of Contents

$BcAdmin  : BcAdminHelper
$data  : array<string|int, mixed>
data
$helpers  : array<string|int, mixed>
ヘルパー
$Page  : Page
ページモデル
$_View  : View
View
__construct()  : mixed
construct
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 = ['BcBaser', 'BcContents', 'BcAdmin']

Methods

__construct()

construct

public __construct(View $View[, mixed $settings = [] ]) : mixed
Parameters
$View : View
$settings : mixed = []
Return values
mixed

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 = []
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(array<string|int, mixed> $page) : string
Parameters
$page : array<string|int, mixed>

固定ページデータ

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
Return values
void

Search results