Example #1
0
 public function __construct(BASE_CLASS_WidgetParameter $params)
 {
     if (!OW::getPluginManager()->isPluginActive('groups')) {
         $this->setVisible('false');
         return;
     }
     parent::__construct($params);
     /*@var $map GOOGLELOCATION_CMP_Map*/
     $map = $this->getComponent("map");
     $map->setMapOption('minZoom', 1);
 }
Example #2
0
 public function __construct(BASE_CLASS_WidgetParameter $params)
 {
     $event = new BASE_CLASS_EventCollector('ads.enabled_plugins');
     OW::getEventManager()->trigger($event);
     $pluginList = $event->getData();
     if (!in_array('groups', $pluginList)) {
         $this->setVisible('false');
         return;
     }
     parent::__construct($params);
 }