Source
(new CTextBox('socket_timeout', $data['socket_timeout'], false, DB::getFieldLength('config', 'socket_timeout')))
<?php
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* @var CView $this
* @var array $data
*/
$this->includeJsFile('administration.miscconfig.edit.js.php');
$widget = (new CWidget())
->setTitle(_('Other configuration parameters'))
->setTitleSubmenu(getAdministrationGeneralSubmenu())
->setDocUrl(CDocHelper::getUrl(CDocHelper::ADMINISTRATION_MISCCONFIG_EDIT));
$from_list = (new CFormList())
->addRow(new CLabel(_('Frontend URL'), 'url'),
(new CTextBox('url', $data['url'], false, DB::getFieldLength('config', 'url')))
->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH)
->setAttribute('placeholder', _('Example: https://localhost/zabbix/ui/'))
->setAttribute('autofocus', 'autofocus')
)
->addRow((new CLabel(_('Group for discovered hosts'), 'discovery_groupid'))->setAsteriskMark(),
(new CMultiSelect([
'name' => 'discovery_groupid',
'object_name' => 'hostGroup',
'data' => $data['discovery_group_data'],
'multiple' => false,
'popup' => [
'parameters' => [
'srctbl' => 'host_groups',
'srcfld1' => 'name',
'dstfrm' => 'otherForm',
'dstfld1' => 'discovery_groupid',
'normal_only' => '1',
'editable' => true
]
]
]))->setWidth(ZBX_TEXTAREA_MEDIUM_WIDTH)
)
->addRow(_('Default host inventory mode'),
(new CRadioButtonList('default_inventory_mode', (int) $data['default_inventory_mode']))
->addValue(_('Disabled'), HOST_INVENTORY_DISABLED)
->addValue(_('Manual'), HOST_INVENTORY_MANUAL)
->addValue(_('Automatic'), HOST_INVENTORY_AUTOMATIC)