Files
iTop/triggerexpirationrule.class.inc.php
Vincent Dumas 101b485657 First version of Notify on expiration
SVN:trunk[6919]
2018-07-19 14:52:09 +00:00

48 lines
1.8 KiB
PHP

<?php
// Copyright (C) 2012-2016 Combodo SARL
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation; version 3 of the License.
//
// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
/**
* @copyright Copyright (C) 2012-2016 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
/**
* To trigger notifications when an object is in scope of an Expiration Rule
*/
class TriggerOnExpirationRule extends TriggerOnObject
{
public static function Init()
{
$aParams = array
(
"category" => "core/cmdb,application", // "application" category => admins can perform a CSV import
"key_type" => "autoincrement",
"name_attcode" => "description",
"state_attcode" => "",
"reconc_keys" => array(),
"db_table" => "priv_trigger_expirationrule",
"db_key_field" => "id",
"db_finalclass_field" => "",
"display_template" => "",
);
MetaModel::Init_Params($aParams);
MetaModel::Init_InheritAttributes();
// Display lists
MetaModel::Init_SetZListItems('details', array('description', 'target_class', 'filter', 'action_list')); // Attributes to be displayed for the complete details
MetaModel::Init_SetZListItems('list', array('finalclass', 'target_class', 'description')); // Attributes to be displayed for a list
// Search criteria
}
}