/** * Register submenu item */ public function register() { $parameters = array($this->parentSlug, $this->pageTitle, $this->menuTitle, $this->capability, $this->menuSlug, array($this->resolver, 'resolve')); call_user_func_array('add_submenu_page', $parameters); $this->resolver->setRoute($this->menuSlug, $this->moduleName); }
/** * Returns an instance of the specified module * @param string $module The name of the module * @return Rsc_Mvc_Module|null */ public function getModule($module) { return $this->resolver->getModules()->get(strtolower($module)); }