Pop\Form\Element\Checkbox::__construct PHP Méthode

__construct() public méthode

Instantiate the checkbox form element object.
public __construct ( string $name, string | array $value = null, string | array $marked = null, string $indent = null ) : Checkbox
$name string
$value string | array
$marked string | array
$indent string
Résultat Checkbox
    public function __construct($name, $value = null, $marked = null, $indent = null)
    {
        $this->value = $value;
        $this->setMarked($marked);
        parent::__construct('checkbox', $name, $value, $marked, $indent);
    }
Checkbox