protected function RenderCheckbox($name)
    {
        $checkbox = new Checkbox($this->namePrefix . $name);
        $class = new \ReflectionClass($this);
        $checkbox->SetLabel(Trans('Core.' . $class->getShortName() . '.' . $name));
        if ($this->Value($name))
        {
            $checkbox->SetChecked();
        }
        $field = new CheckboxField($checkbox);
        return $field->Render();
    }
protected function RenderCheckbox($name)
    {
        $checkbox = new Checkbox($this->namePrefix . $name);
        $class = new \ReflectionClass($this);
        $checkbox->SetLabel(Trans('Core.' . $class->getShortName() . '.' . $name));
        if ($this->Value($name))
        {
            $checkbox->SetChecked();
        }
        $field = new CheckboxField($checkbox);
        return $field->Render();
    }
protected function RenderCheckbox ( $ name ) { $ checkbox = new Checkbox ( $ this -> namePrefix . $ name ) ; $ class = new \ ReflectionClass ( $ this ) ; $ checkbox -> SetLabel ( Trans ( 'Core.' . $ class -> getShortName ( ) . '.' . $ name ) ) ; if ( $ this -> Value ( $ name ) ) { $ checkbox -> SetChecked ( ) ; } $ field = new CheckboxField ( $ checkbox ) ; return $ field -> Render ( ) ; }
Renders a specific checkbox
@param string $name
@return string
Renders a specific checkbox