*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* @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();
}
/**
- * Checks wether include registration date in this block
+ * Checks whether include registration date in this block
*
- * @return $withRegistration Wether with registration date
+ * @return $withRegistration Whether 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());