PHP Class BcFreezeHelper

Inheritance: extends BcFormHelper
Exibir arquivo Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$freezed boolean 凍結状態

Public Methods

Method Description
checkbox ( string $fieldName, array $attributes = [] ) : string チェックボックスを表示する
dateTime ( string $fieldName, string $dateFormat = 'DMY', string $timeFormat = '12', array $attributes = [] ) : string 日付タグを表示
datepicker ( string $fieldName, array $attributes = [] ) : string カレンダーコントロール付きのテキストフィールド jquery-ui-1.7.2 必須
file ( string $fieldName, array $options = [] ) : string ファイルタグを出力
freeze ( ) : void フォームを凍結させる
freezeControll ( string $fieldName, array $options, array $attributes = [] ) : string 凍結時用のコントロールを取得する
image ( string $fieldName, array $attributes = [], array $imageAttributes = [] ) : string ファイルコントロール(画像)を表示する TODO 確認画面には未チェック
jsonList ( string $fieldName, array $attributes ) : string JsonList TODO 確認画面用の実装は全くしてない
radio ( string $fieldName, array $options = [], array $attributes = [] ) : string ラジオボタンを表示する
select ( string $fieldName, array $options = [], array $attributes = [] ) : string select プルダウンメニューを表示
text ( string $fieldName, array $attributes = [] ) : string テキストボックスを表示する
textarea ( $fieldName, $attributes = [] ) : string テキストエリアを表示する
upload ( $fieldName, $options = [] )
wyear ( string $fieldName, integer $minYear = null, integer $maxYear = null, string $selected = null, array $attributes = [], boolean $showEmpty = true ) : string 和暦年

Method Details

checkbox() public method

チェックボックスを表示する
public checkbox ( string $fieldName, array $attributes = [] ) : string
$fieldName string フィールド文字列
$attributes array html属性
return string htmlタグ

dateTime() public method

日付タグを表示
public dateTime ( string $fieldName, string $dateFormat = 'DMY', string $timeFormat = '12', array $attributes = [] ) : string
$fieldName string フィールド文字列
$dateFormat string 日付フォーマット
$timeFormat string 時間フォーマット
$attributes array html属性 - 凍結時、$attributes['selected']に要素を格納することで日付を選択する (例) $attributes['selected'] = array('selected' => array('year' => '2010', 'month' => '4', 'day' => '1'))
return string htmlタグ

datepicker() public method

カレンダーコントロール付きのテキストフィールド jquery-ui-1.7.2 必須
public datepicker ( string $fieldName, array $attributes = [] ) : string
$fieldName string フィールド文字列
$attributes array HTML属性
return string html

file() public method

ファイルタグを出力
public file ( string $fieldName, array $options = [] ) : string
$fieldName string
$options array
return string

freeze() public method

フォームを凍結させる
public freeze ( ) : void
return void

freezeControll() public method

凍結時用のコントロールを取得する
public freezeControll ( string $fieldName, array $options, array $attributes = [] ) : string
$fieldName string フィールド文字列
$options array コントロールソース
$attributes array html属性
return string htmlタグ

image() public method

ファイルコントロール(画像)を表示する TODO 確認画面には未チェック
public image ( string $fieldName, array $attributes = [], array $imageAttributes = [] ) : string
$fieldName string フィールド文字列
$attributes array html属性
$imageAttributes array 画像属性
return string htmlタグ

jsonList() public method

JsonList TODO 確認画面用の実装は全くしてない
public jsonList ( string $fieldName, array $attributes ) : string
$fieldName string フィールド文字列
$attributes array html属性
return string htmlタグ

radio() public method

ラジオボタンを表示する
public radio ( string $fieldName, array $options = [], array $attributes = [] ) : string
$fieldName string フィールド文字列
$options array コントロールソース
$attributes array html属性
return string htmlタグ

select() public method

select プルダウンメニューを表示
public select ( string $fieldName, array $options = [], array $attributes = [] ) : string
$fieldName string フィールド文字列
$options array コントロールソース
$attributes array html属性 - $attributes['cols']が指定されている場合、値の文字の横幅を指定できる
return string $showEmpty htmlタグ

text() public method

テキストボックスを表示する
public text ( string $fieldName, array $attributes = [] ) : string
$fieldName string フィールド文字列
$attributes array html属性 - 凍結時に、$attributes["value"]が指定されている場合、その値がvalueになる。  指定されてない場合、$this->request->data[$model][$field]がvalueになる。
return string htmlタグ

textarea() public method

テキストエリアを表示する
public textarea ( $fieldName, $attributes = [] ) : string
return string htmlタグ

upload() public method

public upload ( $fieldName, $options = [] )

wyear() public method

和暦年
public wyear ( string $fieldName, integer $minYear = null, integer $maxYear = null, string $selected = null, array $attributes = [], boolean $showEmpty = true ) : string
$fieldName string Prefix name for the SELECT element
$minYear integer First year in sequence
$maxYear integer Last year in sequence
$selected string Option which is selected.
$attributes array Attribute array for the select elements.
$showEmpty boolean Show/hide the empty select option
return string

Property Details

$freezed public_oe property

凍結状態
public bool $freezed
return boolean