Pop\Form\Element\Checkbox::__construct PHP 메소드

__construct() 공개 메소드

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
리턴 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