/** * Gets the unique id for a given module * * @param \CWebApplication|\CWebModule $module the parent module or application * * @return string the unique id for the module */ public function getModuleUniqueId($module) { $parts = array(); $parent = $module->getParentModule(); if (is_object($parent)) { $parts[] = $this->getModuleUniqueId($parent); } return implode('/', $parts); }