]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/helper/web/blocks/class_WebBlockHelper.php
'public static final' is correct
[core.git] / inc / classes / main / helper / web / blocks / class_WebBlockHelper.php
index 48b32d838d02ca70e5b485f0c0aa9509a125b6f6..ff1132aaaed0cc85e814d341d09768a7cf376013 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -25,7 +25,7 @@ class WebBlockHelper extends BaseWebHelper implements HelpableTemplate {
        /**
         * Name of the block
         */
-       private $blockName = "";
+       private $blockName = '';
 
        /**
         * Protected constructor
@@ -44,7 +44,7 @@ class WebBlockHelper extends BaseWebHelper implements HelpableTemplate {
         * @param       $blockName                      Name of the block we shall generate
         * @return      $helperInstance         A prepared instance of this helper
         */
-       public final static function createWebBlockHelper (CompileableTemplate $templateInstance, $blockName) {
+       public static final function createWebBlockHelper (CompileableTemplate $templateInstance, $blockName) {
                // Get new instance
                $helperInstance = new WebBlockHelper();
 
@@ -83,7 +83,7 @@ class WebBlockHelper extends BaseWebHelper implements HelpableTemplate {
         * @return      $withRegistration       Wether with registration date
         */
        public function ifIncludeRegistrationStamp () {
-               $withRegistration = ($this->getConfigInstance()->readConfig('block_shows_registration') === "Y");
+               $withRegistration = ($this->getConfigInstance()->getConfigEntry('block_shows_registration') == 'Y');
                return $withRegistration;
        }
 
@@ -140,7 +140,7 @@ class WebBlockHelper extends BaseWebHelper implements HelpableTemplate {
                $templateInstance = $this->getTemplateInstance();
 
                // Get the template named like this block
-               $templateInstance->loadCodeTemplate("block_" . $this->getBlockName());
+               $templateInstance->loadCodeTemplate('block_' . $this->getBlockName());
 
                // Transfer it to the template instance
                $templateInstance->assignVariable($this->getBlockName(), $templateInstance->getRawTemplateData());