mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-03 05:09:28 +00:00
f126bca708
elements - All the widgets classes to render HTML elements moved from WidgetLib to application/widgets/html/ - New directory application/widgets/udf/ for widgets to render UDF - All the UDF widgets classes moved from WidgetLib to application/widgets/udf/ - HTMLWidget is now the main class to render HTML widget - UDFWidget is now the mail class to render UDF - Removed UDFWidgetTpl - Added function loadResource to fhc helper - Changed method widget of WidgetLib (using loadResource) - Moved UDFWidget method from WidgetLib to UDFLib - Slimmed down class Widget present in WidgetLib - Controller system/UDf now uses UDFLib - View application/views/system/udf.php now uses UDFLib - Updated udf and html widgets to adapt them to the new libs
22 lines
554 B
PHP
22 lines
554 B
PHP
<?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';
|
|
|
|
/**
|
|
*
|
|
*/
|
|
protected function loadCheckboxView()
|
|
{
|
|
$this->view('widgets/checkbox', $this->_args);
|
|
}
|
|
} |