コード例 #1
0
ファイル: Library.php プロジェクト: silverstripe/cow
 /**
  * Create a child library
  *
  * @param string $path
  * @return Library
  */
 protected function createChildLibrary($path)
 {
     if (Module::isModulePath($path)) {
         return new Module($path, $this);
     }
     if (Library::isLibraryPath($path)) {
         return new Library($path, $this);
     }
     return null;
 }