PHP 클래스 BcFreezeHelper

상속: extends BcFormHelper
파일 보기 프로젝트 열기: baserproject/basercms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$freezed boolean 凍結状態

공개 메소드들

메소드 설명
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 和暦年

메소드 상세

checkbox() 공개 메소드

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

dateTime() 공개 메소드

日付タグを表示
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'))
리턴 string htmlタグ

datepicker() 공개 메소드

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

file() 공개 메소드

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

freeze() 공개 메소드

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

freezeControll() 공개 메소드

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

image() 공개 메소드

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

jsonList() 공개 메소드

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

radio() 공개 메소드

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

select() 공개 메소드

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

text() 공개 메소드

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

textarea() 공개 메소드

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

upload() 공개 메소드

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

wyear() 공개 메소드

和暦年
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
리턴 string

프로퍼티 상세

$freezed 공개적으로 프로퍼티

凍結状態
public bool $freezed
리턴 boolean