定制 hoglandets-it/itop-warn-expiration 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hoglandets-it/itop-warn-expiration

Composer 安装命令:

composer require hoglandets-it/itop-warn-expiration

包简介

Warn about expiration dates on objects

README 文档

README

This repo is no longer being updated, and has moved to https://github.com/kommunkod/HIT.Itop.WarnExpiration

iTop Warn Expiration

Trigger class to check if a date on a given object is approaching expiration. Adds an additional Trigger to the Notification flow and runs with cron every few hours. Notifies once per object on the following conditions:

  • An object of type T (iTop Class, setting per trigger) with the field E (Date or DateTime field, setting per trigger) passes N (Amount of days before date passes, setting per trigger)

  • There has been no notification sent for this trigger between now and the date in field E minus N days

  • The object is not marked as 'obsolete'

Prerequisites

itop-structure/3.0.0 or newer

Installation

Unzip the itop-warn-expiration folder into your extensions folder, re-run the setup to install the plugin

Usage

Notice

If running earlier versions of iTop 3.0.x, you might have to change the following line in action.class.inc.php:

# Line 266, function FindRecipients
# Existing: 
protected function FindRecipients($sRecipAttCode, $aArgs)
{
    $sOQL = $this->Get($sRecipAttCode);
    if (strlen($sOQL) === 0) return '';
    // ......
}

# Change the following line
if (strlen($sOQL) == '') return '';

# To
if (strlen($sOQL) === 0) return '';

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-10-31