Files
OMS/app/monitor/model/event/template.php
2025-12-28 23:13:25 +08:00

25 lines
607 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* @Author: xueding@shopex.cn
* @Vsersion: 2022/10/13
* @Describe: 预警模板model
*/
class monitor_mdl_event_template extends dbeav_model
{
function modifier_event_type($type)
{
$eventTemplateLib = kernel::single('monitor_event_template');
$eventType = $eventTemplateLib->getEventType();
return $eventType[$type];
}
function modifier_disabled($type)
{
return $type == 'true' ? '禁用' : '启用';
}
}