\BlocksHelper

BlocksHelper

Add your application-wide methods in the class below, your helpers will inherit them.

Summary

Methods
Properties
Constants
beforeRender()
blockTitle()
getBlockStatus()
$helpers
No constants found
No protected methods found
No protected properties found
N/A
__getBlockStatus()
No private properties found
N/A

Properties

$helpers

$helpers : array

使用ヘルパー

Type

array

Methods

beforeRender()

beforeRender(string  $viewFile) : void

Before render callback. beforeRender is called before the view file is rendered.

Overridden in subclasses.

Parameters

string $viewFile

The view file that is going to be rendered

blockTitle()

blockTitle(string  $text = '', string  $titleIcon = null, array  $options = array()) : string

タイトル(ブロックタイトル)の出力

サンプル

echo $this->NetCommonsHtml->blockTitle($bbs['name'])
出力結果
<h1>新しい掲示板 20160513074815</h1>

Parameters

string $text

タイトル

string $titleIcon

タイトルアイコン

array $options

HTML属性オプション

Returns

string —

<h1>タグ

getBlockStatus()

getBlockStatus(null|boolean  $isSetting = null) : string

ブロックのステータスラベルを表示

Parameters

null|boolean $isSetting

強制的にセッティングモード

Returns

string —

HTML

__getBlockStatus()

__getBlockStatus() : string

ブロックのステータスラベルを表示

Returns

string —

HTML