public function onLoad(\Symforce\DiscuzBundle\Service\PluginManager $pluginManager) { parent::onLoad($pluginManager); if (empty($this->action_helpers)) { $config = new \Symforce\DiscuzBundle\Annotation\Action(); $config->name = 'default'; $config->title = $this->title; $rc = new \ReflectionObject($this); $method = $rc->getMethod('onDefaultAction'); $this->action_helpers[$config->name] = new ActionHelper($config, $method, $this); } if (!$this->action_default) { foreach ($this->action_helpers as $name => $action_helper) { $this->action_default = $name; break; } } }
public final function getPluginModuleTypeId(PluginModule $module) { return $this->_plugin_modules_types[$module->getType()]; }