File "CheckboxField.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-forms/src/Field/CheckboxField.php
File size: 660 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace FSVendor\WPDesk\Forms\Field;
class CheckboxField extends BasicField
{
const VALUE_TRUE = 'yes';
const VALUE_FALSE = 'no';
public function __construct()
{
parent::__construct();
$this->set_attribute('type', 'checkbox');
}
public function get_template_name()
{
return 'input-checkbox';
}
public function get_sublabel()
{
return $this->meta['sublabel'];
}
public function set_sublabel($value)
{
$this->meta['sublabel'] = $value;
return $this;
}
public function has_sublabel()
{
return isset($this->meta['sublabel']);
}
}