\BlockIndexHelper

ブロック一覧用Helper

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

Summary

Methods
Properties
Constants
__call()
beforeRender()
create()
description()
notFoundDescription()
startTableRow()
tableHeader()
tableData()
$helpers
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$helpers

$helpers : array

使用するHelper

Type

array

Methods

__call()

__call(string  $method, array  $params) : mixed

各プラグインのHelperラップ用マジックメソッド

指定されたメソッドにより、各プラグインのHelperのメソッドを呼び出します。

Parameters

string $method

メソッド

array $params

パラメータ

Returns

mixed

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

create()

create(mixed  $model = null, array  $options = array()) : string

アクションが/frames/frames/editで、NetCommonsForm->create()の結果を出力する

return サンプル
<form method="post" novalidate="novalidate" ng-submit="submit($event)" action="/frames/frames/edit">

Parameters

mixed $model

モデル名

array $options

オプション

Returns

string

description()

description(string  $addMsg = '') : string

ブロック一覧の画面説明を表示する

Parameters

string $addMsg

追加メッセージ

Returns

string —

HTML

notFoundDescription()

notFoundDescription() : string

NotFoundの時のブロック一覧の画面説明を表示する

Returns

string —

HTML

startTableRow()

startTableRow(integer  $blockId, string  $fieldName = 'Frame.block_id') : string

ブロック一覧の`<tr>`を表示する

Parameters

integer $blockId

ブロックID

string $fieldName

フィールド名(Model.field)

Returns

string —

HTML

tableHeader()

tableHeader(string  $fieldName, string  $title = '', array  $options = array()) : string

ブロック一覧の`<th>`を表示する

Parameters

string $fieldName

フィールド名(Model.field)

string $title

タイトル

array $options

オプション

Returns

string —

HTML

tableData()

tableData(string  $fieldName, string|array  $value = '', array  $options = array()) : string

ブロック一覧のデータを表示する

Parameters

string $fieldName

フィールド名(Model.field)

string|array $value

array $options

オプション

Returns

string —

HTML