<?php declare(strict_types = 0);
$operations_table = (new CTable())
->setAttribute('style', 'width: 100%;')
->setHeader([_('Details'), _('Action')]);
foreach ($data['action']['recovery_operations'] as $operationid => $operation) {
if (!str_in_array($operation['operationtype'], $data['allowedOperations'][ACTION_RECOVERY_OPERATION])) {
if (!isset($operation['opconditions'])) {
$operation['opconditions'] = [];
if (!array_key_exists('opmessage', $operation)) {
$operation['opmessage'] = [];
$operation['opmessage'] += [
$operation_for_popup = array_merge($operation, ['id' => $operationid]);
foreach (['opcommand_grp' => 'groupid', 'opcommand_hst' => 'hostid'] as $var => $field) {
if (array_key_exists($var, $operation_for_popup)) {
$operation_for_popup[$var] = zbx_objectValues($operation_for_popup[$var], $field);
if (array_key_exists('recovery', $data['descriptions'])) {
$data['descriptions'] = $data['descriptions']['recovery'];
$details_column = getActionOperationDescriptions(
$data['action']['recovery_operations'], $data['eventsource'], $data['descriptions']