コード例 #1
0
ファイル: Builder.php プロジェクト: nhc/Umc_Base
 /**
  * @param bool $namespaceOnly
  * @return string
  */
 public function getBaseWritePath($namespaceOnly = false)
 {
     return $this->module->getSettings()->getXmlRootPath() . '/' . $this->module->getNamespace() . '/' . (!$namespaceOnly ? $this->module->getModuleName() . '/' : '');
 }
コード例 #2
0
ファイル: ModuleTest.php プロジェクト: artmouse/Umc_Base
 /**
  * Tests Module->getNamespace()
  */
 public function testGetNamespace()
 {
     $this->module->setData(['namespace' => 'Test']);
     $this->assertEquals('Test', $this->module->getNamespace());
     $this->assertEquals('test', $this->module->getNamespace(true));
 }