예제 #1
0
파일: Schema.php 프로젝트: codemix/restyii
 /**
  * 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);
 }