public function getTable() { if (!$this->table) { $original = $this->mapper->getTableByRepositoryClass(get_called_class()); if (!$this->module) { $this->table = self::CORE_TABLE_PREFIX . '__' . $original; } else { $this->table = $this->module->getVendor() . '_' . $this->module->getName() . '__' . $original; } } return $this->table; }
/** * @param IModule $module * @return $this */ public function addModule(IModule $module) { $this->modules[$name = $module->getName() . '/' . $module->getVendor()] = $module; $this->eventManager->call('phoenix.modules.init', $name, $module); return $this; }