Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     OW::getEventManager()->bind(MCOMPOSE_BOL_Service::EVENT_ON_SEARCH, array($this, "onSearch"));
     OW::getEventManager()->bind(MCOMPOSE_BOL_Service::EVENT_ON_INPUT_INIT, array($this, "onInputInit"));
     OW::getEventManager()->bind("mcompose.get_profile_toolbar_item", array($this, "onProfileToolbar"));
 }
Exemplo n.º 2
0
 public function init()
 {
     if (!$this->isActive() || !$this->isEnabled()) {
         return;
     }
     parent::init();
     OW::getEventManager()->bind(MCOMPOSE_BOL_Service::EVENT_ON_SEARCH, array($this, "onSearch"));
     OW::getEventManager()->bind(MCOMPOSE_BOL_Service::EVENT_ON_INPUT_INIT, array($this, "onInputInit"));
 }