Files
FHC-Core/application/widgets/html/CheckboxWidget.php
T
SimonGschnell a21a292da6 dokument upload
2024-01-29 16:48:41 +01:00

24 lines
654 B
PHP
Executable File

<?php
/**
* It exends the Widget class to represent an HTML dropdown
*/
class CheckboxWidget extends HTMLWidget
{
// Name of the property that will be used to store the value attribute of the option tag
const VALUE_FIELD = 'value';
// Name of the property that will be used to store the value between the option tags
const DESCRIPTION_FIELD = 'description';
// Value of value attribute of the checkbox
const CHECKBOX_VALUE = 'true';
// Default checkbox value
const HTML_DEFAULT_VALUE = false;
/**
* Loads the view that renders a checkbox
*/
protected function loadCheckboxView()
{
$this->view('widgets/checkbox', $this->_args);
}
}