for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Asymptix\ui\components;
/**
* CheckBox UI component class.
*
* @category Asymptix PHP Framework
* @author Dmytro Zarezenko <[email protected]>
* @copyright (c) 2009 - 2016, Dmytro Zarezenko
* @git https://github.com/Asymptix/Framework
* @license http://opensource.org/licenses/MIT
*/
class UICheckBox extends \Asymptix\ui\UIComponent {
* Default checkbox HTML template.
const DEFAULT_TEMPLATE = "core/ui/templates/components/ui_checkbox.tpl.php";
* Makes the select field focused on page load (empty or 'autofocus', optional).
* @var string
protected $autofocus = "";
* Specifies that the option should be disabled when it first loads
* (empty or 'disabled', optional).
protected $disabled = "";
* Defines one ore more forms the select field belongs to (optional).
protected $form = "";
* Defines the value of the option to be sent to the server.
* @var string,integer
protected $value = "";
* Indicates that the input element should be checked when it first loads.
* @var bool
protected $checked = false;
* Generate HTML of the list <input type="checkbox" ... /> element.
* @param array<string => string> $attributesList List of the component attributes.
* @param string $template Path to the components template file.
public function __construct($attributesList, $template) {
parent::__construct($attributesList, $template);
}