*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
$this->templateType = (string) $templateType;
}
+ /**
+ * Getter for template type
+ *
+ * @return $templateType The current template's type
+ */
+ public final function getTemplateType () {
+ return $this->templateType;
+ }
+
/**
* Setter for the last loaded template's FQFN
*
$this->compileOutputPath = (string) $compileOutputPath;
}
- /**
- * Getter for template type
- *
- * @return $templateType The current template's type
- */
- public final function getTemplateType () {
- return $this->templateType;
- }
-
/**
* Unsets the given offset in the variable group
*
$this->loadTemplate($template, $ext);
} else {
// Throw it again
- throw new FileIoException($fqfn, FrameworkFileInputPointer::EXCEPTION_FILE_NOT_FOUND);
+ throw new FileIoException($fqfn, self::EXCEPTION_FILE_NOT_FOUND);
}
}
* @return void
*/
private function loadRawTemplateData ($fqfn) {
- // Get a input/output instance from the middleware
- $ioInstance = $this->getFileIoInstance();
-
// Some debug code to look on the file which is being loaded
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: FQFN=' . $fqfn);
// Load the raw template
- $rawTemplateData = $ioInstance->loadFileContents($fqfn);
+ $rawTemplateData = $this->getFileIoInstance()->loadFileContents($fqfn);
// Store the template's contents into this class
$this->setRawTemplateData($rawTemplateData);
* @return void
*/
protected function loadViewHelper ($helperName) {
- // Make first character upper case, rest low
- $helperName = $this->convertToClassName($helperName);
-
// Is this view helper loaded?
if (!isset($this->helpers[$helperName])) {
// Create a class name
- $className = $helperName . 'ViewHelper';
+ $className = $this->convertToClassName($helperName) . 'ViewHelper';
// Generate new instance
$this->helpers[$helperName] = ObjectFactory::createObjectByName($className);