BcFreezeHelper::checkbox PHP Method

checkbox() public method

チェックボックスを表示する
public checkbox ( string $fieldName, array $attributes = [] ) : string
$fieldName string フィールド文字列
$attributes array html属性
return 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);
        }
    }