Beispiel #1
0
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
         return PluginAdditionalalertsAdditionalalert::getTypeName(2);
     }
     return '';
 }
 static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = array();
     $menu['title'] = self::getMenuName();
     $menu['page'] = "/plugins/additionalalerts/front/additionalalert.form.php";
     $menu['links']['search'] = PluginAdditionalalertsAdditionalalert::getFormURL(false);
     return $menu;
 }
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     global $CFG_GLPI;
     if ($item->getType() == 'NotificationMailSetting' && $item->getField('id') && $CFG_GLPI["use_mailing"]) {
         return PluginAdditionalalertsAdditionalalert::getTypeName(2);
     } else {
         if ($item->getType() == 'Entity') {
             return PluginAdditionalalertsAdditionalalert::getTypeName(2);
         }
     }
     return '';
 }
https://forge.indepnet.net/projects/additionalalerts
-------------------------------------------------------------------------

LICENSE
     
This file is part of Additionalalerts.

Additionalalerts is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

Additionalalerts 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 additionalalerts. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include '../../../inc/includes.php';
Html::header(PluginAdditionalalertsAdditionalalert::getTypeName(2), '', "config", "pluginadditionalalertsmenu");
$alert = new PluginAdditionalalertsAdditionalalert();
if ($alert->canView() || Session::haveRight("config", "w")) {
    PluginAdditionalalertsAdditionalalert::displayAlerts();
} else {
    Html::displayRightError();
}
Html::footer();