* @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);
*/
public function getImageCacheFqfn () {
// Get the FQFN ready
- $fqfn = sprintf("%s%s%s/%s.%s",
+ $fqfn = sprintf('%s%s%s/%s.%s',
$this->getConfigInstance()->getConfigEntry('base_path'),
$this->getGenericBasePath(),
'images/_cache',
*/
public function transferToResponse (Responseable $responseInstance) {
// Set the image instance
- $responseInstance->setImageInstance($this->getImageInstance());
+ $responseInstance->getImageInstance($this->getImageInstance());
}
/**