Source
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
class CCheckBoxList extends CList {
private const ZBX_STYLE_CLASS = 'checkbox-list';
private const ZBX_STYLE_LAYOUT_FIXED = 'fixed';
private const ZBX_STYLE_VERTICAL = 'vertical';
/**
* @var array $values
*/
protected array $values = [];
/**
* @var string $name
*/
protected $name;
/**
* Checkboxes id unique suffix.
*/
protected $uniqid = '';
/**
* @var bool $enabled
*/
protected $enabled = true;
/**
* @var bool $readonly
*/
protected $readonly = false;
/**
* @var bool $layout_fixed
*/
protected $layout_fixed = false;
/**
* @var bool $vertical
*/
protected $vertical = false;
/**
* @var int $columns
*/
protected int $columns = 1;