(new CLabel(_('Authentication protocol'), 'label-authprotocol'))->setId('dcheck_snmpv3_authprotocol_label'),
<?php declare(strict_types = 0);
$discovery_check_types = discovery_check_type2str();
order_result($discovery_check_types);
$inline_js = getPagePostJs().$this->readJsFile('discovery.check.edit.js.php');
$form = (new CForm())->addStyle('display: none;');
if (array_key_exists('dcheckid', $data['params']) && $data['params']['dcheckid']) {
$form->addVar('dcheckid', $data['params']['dcheckid']);
$select_type = (new CSelect('type'))
->setValue($data['params']['type'])
->setFocusableElementId('type')
->addOptions(CSelect::createOptionsFromArray($discovery_check_types));
$select_snmpv3_securitylevel = (new CSelect('snmpv3_securitylevel'))
->setId('snmpv3-securitylevel')
->setValue($data['params']['snmpv3_securitylevel'])
->setFocusableElementId('snmpv3-securitylevel-button')
->addOption(new CSelectOption(ITEM_SNMPV3_SECURITYLEVEL_NOAUTHNOPRIV, 'noAuthNoPriv'))
->addOption(new CSelectOption(ITEM_SNMPV3_SECURITYLEVEL_AUTHNOPRIV, 'authNoPriv'))
->addOption(new CSelectOption(ITEM_SNMPV3_SECURITYLEVEL_AUTHPRIV, 'authPriv'));
$form_grid = (new CFormGrid())
(new CLabel(_('Check type'), $select_type->getFocusableElementId())),
new CFormField($select_type)
(new CLabel(_('Port range'), 'ports'))
->setId('dcheck_ports_label')
(new CTextBox('ports', $data['params']['ports']))
->setWidth(ZBX_TEXTAREA_SMALL_WIDTH)
))->setId('dcheck_ports')