Classes

File builder/table/filter/HTMLTableCheckboxFilter.class.php

File builder/table/filter/HTMLTableCheckboxFilter.class.php

 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 
<?php
/**
 * @package     Builder
 * @subpackage  Table\filter
 * @copyright   &copy; 2005-2019 PHPBoost
 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0
 * @author      Julien BRISWALTER <j1.seth@phpboost.com>
 * @version     PHPBoost 5.2 - last update: 2017 07 31
 * @since       PHPBoost 5.0 - 2017 04 18
*/

abstract class HTMLTableCheckboxFilter extends AbstractHTMLTableFilter
{
    public function __construct($name, $label, $checked = FormFieldCheckbox::UNCHECKED)
    {
        $input = new FormFieldCheckbox($name, $label, $checked);
        parent::__construct($name, $input);
    }

    /**
     * {@inheritdoc}
     */
    public function is_value_allowed($value)
    {
        return true;
    }
}

?>