*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 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
*
protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
+
+ // Set response type
+ $this->setResponseType('image');
}
/**
// Initialize the template engine here
$responseInstance->initTemplateEngine($applicationInstance);
+ // Init web output instance
+ $responseInstance->initWebOutputInstance();
+
// Return the prepared instance
return $responseInstance;
}
$cfg = $this->getConfigInstance();
// Set new template engine
- $cfg->setConfigEntry('web_template_class' , $cfg->getConfigEntry('image_template_class'));
+ $cfg->setConfigEntry('html_template_class' , $cfg->getConfigEntry('image_template_class'));
$cfg->setConfigEntry('raw_template_extension' , '.img');
$cfg->setConfigEntry('code_template_extension', '.xml');
$cfg->setConfigEntry('tpl_base_path' , 'templates/images/');
$this->addCookie($cookieName, $_COOKIE[$cookieName], FALSE);
} // END - if
}
-
- /**
- * Getter for default command
- *
- * @return $defaultCommand Default command for this response
- */
- public function getDefaultCommand () {
- $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_image_command');
- return $defaultCommand;
- }
}
// [EOF]