baserCMS クラスリファレンス

BcHtmlHelper extends HtmlHelper
in package
Uses BcEventDispatcherTrait

Htmlヘルパーの拡張クラス

Table of Contents

Properties

$Breadcrumbs  : BreadcrumbsHelper
$helpers  : array<string|int, mixed>
Included helpers.
$Url  : UrlHelper
$_View  : View
View

Methods

declarationI18n()  : string
i18n 用の変数を宣言する
dispatchLayerEvent()  : bool|Event
イベントを発火
getStripCrumbs()  : array<string|int, mixed>
タグにラッピングされていないパンくずデータを取得する
i18nScript()  : mixed
JavaScript に、翻訳データを引き渡す `bcI18n.キー名` で参照可能 (例)bcI18n.alertMessage
setScript()  : string
JavaScript に変数を引き渡す

Properties

$helpers

Included helpers.

public array<string|int, mixed> $helpers = ['Url', 'Breadcrumbs']

Methods

declarationI18n()

i18n 用の変数を宣言する

public declarationI18n() : string
Tags
checked
noTodo
unitTest
Return values
string

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

getStripCrumbs()

タグにラッピングされていないパンくずデータを取得する

public getStripCrumbs() : array<string|int, mixed>
Tags
checked
noTodo
unitTest

ラッパーのためテスト不要

Return values
array<string|int, mixed>

i18nScript()

JavaScript に、翻訳データを引き渡す `bcI18n.キー名` で参照可能 (例)bcI18n.alertMessage

public i18nScript(mixed $data[, mixed $options = [] ]) : mixed
Parameters
$data : mixed
$options : mixed = []
Tags
checked
noTodo

setScript()

JavaScript に変数を引き渡す

public setScript(string $variable, mixed $value[, array<string|int, mixed> $options = [] ]) : string
Parameters
$variable : string

変数名(グローバル変数)

$value : mixed

$options : array<string|int, mixed> = []
  • block : ビューブロックを指定(初期値 : false)
  • declaration : var 宣言を行うかどうか(初期値 : true)
Tags
checked
noTodo
unitTest
Return values
string

        
On this page

Search results