BcFreezeHelper::checkbox PHP 메소드

checkbox() 공개 메소드

チェックボックスを表示する
public checkbox ( string $fieldName, array $attributes = [] ) : string
$fieldName string フィールド文字列
$attributes array html属性
리턴 string htmlタグ
    public function checkbox($fieldName, $attributes = array())
    {
        if ($this->freezed) {
            $label = '';
            if (isset($attributes['label'])) {
                $label = $attributes['label'];
            }
            $options = array(0 => '', 1 => $label);
            return $this->freezeControll($fieldName, $options, $attributes);
        } else {
            return parent::checkbox($fieldName, $attributes);
        }
    }