/** * Set listened target * @param ZDispatcher $a_target */ function setTarget(ZDispatcher &$a_target) { if ($this->m_target) { unset($this->m_target); } $this->m_target =& $a_target; $this->m_target->addProcessor(array(&$this, 'eventProcessor')); $this->m_prefix = Zoombi::config('plugin.action_prefix', ''); $this->m_suffix = Zoombi::config('plugin.action_suffix', 'Action'); }
/** * Set listened target * @param ZDispatcher $a_target */ function setTarget(ZDispatcher &$a_target) { if ($this->m_target) { $this->m_target->removeProcessor(array($this, 'processEvent')); unset($this->m_target); } $this->m_target = $a_target; $this->m_target->addProcessor(array($this, 'processEvent')); $this->m_prefix = $this->getModule()->getConfig()->getValue('plugin.action_prefix', ZModule::DEFAULT_PLUGIN_METHOD_PREFIX); $this->m_suffix = $this->getModule()->getConfig()->getValue('plugin.action_suffix', ZModule::DEFAULT_PLUGIN_METHOD_SUFFIX); }
/** * Set listened target * @param ZDispatcher $a_target */ function setTarget(ZDispatcher &$a_target) { if ($this->m_target) { $this->m_target->removeProcessor(array(&$this, 'processEvent')); unset($this->m_target); } $this->m_target = $a_target; $this->m_target->addProcessor(array(&$this, 'processEvent')); $this->m_prefix = $this->getModule()->getConfig()->getValue('plugin.action_prefix', ''); $this->m_suffix = $this->getModule()->getConfig()->getValue('plugin.action_suffix', 'Action'); }