*
* @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
*
/**
* Name of the block
*/
- private $blockName = "";
+ private $blockName = '';
/**
* Protected constructor
* @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();
* @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;
}
$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());