Пример #1
0
 public static function execute(SlideMenuEvent $event)
 {
     $router = Di::getDefault()->get('router');
     try {
         $event->setDefaultMenu(array('name' => 'service', 'url' => $router->getPathFor('/centreon-configuration/service/snapshotslide/') . $event->getId(), 'icon' => '', 'order' => 0, 'tpl' => "/viewtpl/CentreonConfigurationModule/service_slide"));
         $event->addMenu(array('name' => 'template', 'url' => $router->getPathFor('/centreon-configuration/servicetemplate/viewconfslide/') . $event->getId(), 'icon' => '', 'order' => 2, 'tpl' => "/viewtpl/CentreonConfigurationModule/service_templates_slide"));
         $event->addMenu(array('name' => 'tag', 'url' => $router->getPathFor('/centreon-configuration/service/' . $event->getId() . '/tags'), 'icon' => '', 'order' => 1, 'tpl' => "/viewtpl/CentreonConfigurationModule/tags_slide", 'default' => 1));
         /*
                     $event->addMenu(
                         array(
                             'name' => 'service',
                             'url' => $router->getPathFor('/centreon-configuration/host/'.$event->getId().'/service'),
                             'icon' => '',
                             'order' => 4,
                             'tpl' => "/viewtpl/CentreonConfigurationModule/services_slide"
                         )
                     );
                     
                     $event->addMenu(
                         array(
                             'name' => 'command',
                             'url' => $router->getPathFor('/centreon-configuration/host/'.$event->getId().'/command'),
                             'icon' => '',
                             'order' => 5,
                             'tpl' => "/viewtpl/CentreonConfigurationModule/command_slide"
                         )
                     );
         */
     } catch (Exception $e) {
     }
 }
 public static function execute(SlideMenuEvent $event)
 {
     $router = Di::getDefault()->get('router');
     try {
         $event->setDefaultMenu(array('name' => 'business_activity', 'url' => $router->getPathFor('/centreon-bam/business-activity/snapshotslide/') . $event->getId(), 'icon' => '', 'order' => 0, 'tpl' => "/viewtpl/CentreonBamModule/ba_slide"));
         $event->addMenu(array('name' => 'tag', 'url' => $router->getPathFor('/centreon-bam/business-activity/' . $event->getId() . '/tags'), 'icon' => '', 'order' => 1, 'tpl' => "/viewtpl/CentreonBamModule/tags_slide", 'default' => 1));
         $event->addMenu(array('name' => 'kpi', 'url' => $router->getPathFor('/centreon-bam/business-activity/' . $event->getId() . '/indicators'), 'icon' => '', 'order' => 2, 'tpl' => "/viewtpl/CentreonBamModule/indicators_slide"));
     } catch (Exception $e) {
     }
 }
Пример #3
0
 public static function execute(SlideMenuEvent $event)
 {
     $router = Di::getDefault()->get('router');
     try {
         $event->setDefaultMenu(array('name' => 'service', 'url' => $router->getPathFor('/centreon-realtime/service/snapshotslide/') . $event->getId(), 'icon' => '', 'order' => 0, 'tpl' => "/viewtpl/CentreonConfigurationModule/service_slide"));
         $event->addMenu(array('name' => 'incident', 'url' => $router->getPathFor('/centreon-realtime/service/incidentslide/') . $event->getId(), 'icon' => '', 'order' => 5, 'tpl' => "/viewtpl/CentreonRealtimeModule/incidents_slide"));
         $event->addMenu(array('name' => 'tag', 'url' => $router->getPathFor('/centreon-realtime/service/tagslide/') . $event->getId(), 'icon' => '', 'order' => 3, 'tpl' => "/viewtpl/CentreonConfigurationModule/tags_slide"));
         $event->addMenu(array('name' => 'command', 'url' => $router->getPathFor('/centreon-realtime/service/slidecommand/') . $event->getId(), 'icon' => '', 'order' => 1, 'tpl' => "/viewtpl/CentreonRealtimeModule/command_slide"));
         $event->addMenu(array('name' => 'output', 'url' => $router->getPathFor('/centreon-realtime/service/slideoutput/') . $event->getId(), 'icon' => '', 'order' => 2, 'tpl' => "/viewtpl/CentreonRealtimeModule/output_slide"));
         $event->addMenu(array('name' => 'real-time', 'url' => $router->getPathFor('/centreon-realtime/service/slideschelduded/') . $event->getId(), 'icon' => '', 'order' => 4, 'tpl' => "/viewtpl/CentreonRealtimeModule/schedulinginfos_slide"));
     } catch (Exception $e) {
     }
 }
Пример #4
0
 public static function execute(SlideMenuEvent $event)
 {
     $router = Di::getDefault()->get('router');
     try {
         $event->addMenu(array('name' => 'incident', 'url' => $router->getPathFor('/centreon-realtime/host/' . $event->getId() . '/issues'), 'icon' => '', 'order' => 5, 'tpl' => "/viewtpl/CentreonRealtimeModule/incidents_slide"));
     } catch (Exception $e) {
     }
 }