|
@@ -1,5 +1,5 @@
|
|
|
<?php
|
|
|
-class mtzGenerateContent {
|
|
|
+class nsGenerateContent {
|
|
|
|
|
|
// Resource path normally same as component
|
|
|
private $resPath;
|
|
@@ -80,9 +80,9 @@ class mtzGenerateContent {
|
|
|
'SOFTWARE_NAME' => kEmptyString,
|
|
|
'SOFTWARE_VERSION' => kEmptyString,
|
|
|
'SOFTWARE_DEBUG' => kEmptyString,
|
|
|
- 'CONTENT_PATH' => gMtzUtils::StripStr($this->contentPath, kRootPath) . kSlash . gGetConfig('network.requestPath'),
|
|
|
+ 'CONTENT_PATH' => nsUtils::StripStr($this->contentPath, kRootPath) . kSlash . gGetConfig('network.requestPath'),
|
|
|
'BASE_SKIN_PATH' => kDefaultSkinPath,
|
|
|
- 'COMPONENT_SKIN_PATH' => gMtzUtils::StripStr($this->skinPath, kRootPath),
|
|
|
+ 'COMPONENT_SKIN_PATH' => nsUtils::StripStr($this->skinPath, kRootPath),
|
|
|
'SITE_NAME' => gGetConfig('console.ui.siteName', kAppName),
|
|
|
'SITE_MENU' => kEmptyString,
|
|
|
'SITE_SECTION' => gGetConfig('app.path.0', kEmptyString),
|
|
@@ -100,7 +100,7 @@ class mtzGenerateContent {
|
|
|
'CACHE_EPOCH' => time(),
|
|
|
);
|
|
|
|
|
|
- $this->finalOutput = gMtzUtils::SubstEx($this->template, $substs, kLeftBrace . kDollar);
|
|
|
+ $this->finalOutput = nsUtils::SubstEx($this->template, $substs, kLeftBrace . kDollar);
|
|
|
|
|
|
gSetConfig('console.output.responseBody', $this->finalOutput);
|
|
|
gOutput(true, 'html');
|
|
@@ -111,7 +111,7 @@ class mtzGenerateContent {
|
|
|
********************************************************************************************************************/
|
|
|
private function _ParseYaml($aContent) {
|
|
|
return ['data' => gEnsureValue(@yaml_parse($aContent)),
|
|
|
- 'content' => preg_replace(gMtzUtils::REGEX_PATTERNS['yaml'], kEmptyString, $aContent)];
|
|
|
+ 'content' => preg_replace(nsUtils::REGEX_PATTERNS['yaml'], kEmptyString, $aContent)];
|
|
|
}
|
|
|
|
|
|
/********************************************************************************************************************
|