public static function checkbox($name, $checked, array $attributes = array(), $serialize = true)
    {
        if ($name !== null) {
            $attributes['name'] = $name;
        }

        $node = new Node\Checkbox($serialize, $checked);
        return $node->render($attributes);
    }
public static function checkbox($name, $checked, array $attributes = array(), $serialize = true)
    {
        if ($name !== null) {
            $attributes['name'] = $name;
        }

        $node = new Node\Checkbox($serialize, $checked);
        return $node->render($attributes);
    }
public static function checkbox ( $ name , $ checked , array $ attributes = array ( ) , $ serialize = true ) { if ( $ name !== null ) { $ attributes [ 'name' ] = $ name ; } $ node = new Node \ Checkbox ( $ serialize , $ checked ) ; return $ node -> render ( $ attributes ) ; }
Creates "Checkbox" node element

@param string $name Element name
@param boolean $checked Whether it should be checked or not
@param array $attributes Extra attributes
@param boolean $serialize Whether the element should be serializeable or not
@return string
Creates Checkbox node element