PHP Class BcFormHelper

Inheritance: extends FormHelper
Show file Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$helpers ---
$sizeCounterFunctionLoaded boolean sizeCounter用の関数読み込み可否

Public Methods

Method Description
checkbox ( string $fieldName, array $options = [] ) : string Creates a checkbox input widget.
ckeditor ( string $fieldName, array $options = [] ) : string CKEditorを出力する
create ( array $model = null, array $options = [] ) : string create フック用にラッピング
dateTime ( string $fieldName, string $dateFormat = 'DMY', string $timeFormat = '12', array $attributes = [] ) : string Returns a set of SELECT elements for a full datetime setup: day, month and year, and then time.
dateTimePicker ( string $fieldName, array $attributes = [] ) : string 日付カレンダーと時間フィールド
datepicker ( $fieldName, $attributes = [] ) : string カレンダーコントロール付きのテキストフィールド jquery-ui-1.7.2 必須
dispatchAfterForm ( string $type = '' ) : string フォームの最後のフィールドの後に発動する前提としてイベントを発動する
editor ( string $fieldName, array $options = [] ) : string エディタを表示する
end ( array $options = null, $secureAttributes = [] ) : string end フック用にラッピング
file ( string $fieldName, array $options = [] ) : string ファイルインプットボックス出力
generateList ( string $modelName, mixed $conditions = [], mixed $fields = [], mixed $order = [] ) : mixed モデルよりリストを生成する
getControlSource ( string $field, array $options = [] ) : array コントロールソースを取得する Model側でメソッドを用意しておく必要がある
hidden ( string $fieldName, array $options = [] ) : string Creates a hidden input field.
input ( string $fieldName, array $options = [] ) : string Generates a form input element complete with label and wrapper div
jsonList ( string $field, string $attributes ) : array JsonList
prefTag ( string $fieldName, mixed $selected = null, array $attributes = [] ) : string 都道府県用のSELECTタグを表示する
radio ( string $fieldName, array $options = [], array $attributes = [] ) : string Creates a set of radio widgets. Will create a legend and fieldset by default. Use $options to control this
select ( string $fieldName, array $options = [], array $attributes = [] ) : string Returns a formatted SELECT element.
selectText ( string $fieldName, array $options = [], mixed $selected = null, array $attributes = [], mixed $showEmpty = '' ) : string 文字列保存用複数選択コントロール
submit ( string $caption = null, array $options = [] ) : string Creates a submit button element. This method will generate elements that can be used to submit, and reset forms by using $options. image submits can be created by supplying an image path for $caption.
wyear ( string $fieldName, integer $minYear = null, integer $maxYear = null, string $selected = null, array $attributes = [], boolean $showEmpty = true ) : string 和暦年

Protected Methods

Method Description
_generateOptions ( string $name, array $options = [] ) : array Generates option lists for common
_getId ( string $model = null, array $options = [] ) : string フォームのIDを取得する BcForm::create より呼出される事が前提
_selectOptions ( array $elements = [], array $parents = [], boolean $showParents = null, array $attributes = [] ) : array Returns an array of formatted OPTION/OPTGROUP elements

Method Details

_generateOptions() protected method

Generates option lists for common