]> git.mxchange.org Git - core.git/commitdiff
Naming convention applied on class templates
authorRoland Häder <roland@mxchange.org>
Tue, 22 Dec 2009 08:05:43 +0000 (08:05 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 22 Dec 2009 08:05:43 +0000 (08:05 +0000)
inc/classes/main/resolver/command/web/class_
inc/classes/main/template/class_

index 57955f976afaf0e613d176b1a60b65a325675ba4..f276d4848d29392fbd8ba78c856f81412959c072 100644 (file)
@@ -89,7 +89,7 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
                $commandName = $requestInstance->getRequestElement('page');
 
                // Is the command empty? Then fall back to default command
-               if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_web_command');
+               if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_web_command');
 
                // Check if the command is valid
                if ($this->isCommandValid($commandName) === false) {
@@ -125,7 +125,7 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
                $commandInstance = null;
 
                // Is the command empty? Then fall back to default command
-               if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_web_command');
+               if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_web_command');
 
                // Check if the command is valid
                if ($this->isCommandValid($commandName) === false) {
@@ -150,7 +150,7 @@ class Web???CommandResolver extends BaseCommandResolver implements CommandResolv
         */
        private function loadCommand ($commandName) {
                // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command');
+               $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_web_command');
 
                // Init command instance
                $commandInstance = null;
index 985d514f2cda5b0f58768a93402728132b6c2aca..702ea8fe8cafe3cbae361507cbb6eb360fcd50a3 100644 (file)
@@ -53,7 +53,7 @@ class ???TemplateEngine extends BaseTemplateEngine implements CompileableTemplat
                $ioInstance = $appInstance->getFileIoInstance();
 
                // Determine base path
-               $templateBasePath = $tplInstance->getConfigInstance()->readConfig('application_base_path') . $appInstance->getRequestInstance()->getRequestElement('app') . '/';
+               $templateBasePath = $tplInstance->getConfigInstance()->getConfigEntry('application_base_path') . $appInstance->getRequestInstance()->getRequestElement('app') . '/';
 
                // Is the base path valid?
                if (empty($templateBasePath)) {
@@ -81,11 +81,11 @@ class ???TemplateEngine extends BaseTemplateEngine implements CompileableTemplat
                $tplInstance->setFileIoInstance($ioInstance);
 
                // Set template extensions
-               $tplInstance->setRawTemplateExtension($configInstance->readConfig('raw_template_extension'));
-               $tplInstance->setCodeTemplateExtension($configInstance->readConfig('code_template_extension'));
+               $tplInstance->setRawTemplateExtension($configInstance->getConfigEntry('raw_template_extension'));
+               $tplInstance->setCodeTemplateExtension($configInstance->getConfigEntry('code_template_extension'));
 
                // Absolute output path for compiled templates
-               $tplInstance->setCompileOutputPath($configInstance->readConfig('base_path') . $configInstance->readConfig('compile_output_path'));
+               $tplInstance->setCompileOutputPath($configInstance->getConfigEntry('base_path') . $configInstance->getConfigEntry('compile_output_path'));
 
                // Return the prepared instance
                return $tplInstance;