*
* @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, this is free software
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
/**
* Instance of the template engine
*/
- private $templateEngine = null;
+ private $templateInstance = null;
/**
* Fatal resolved messages from filters and so on
// Call parent constructor
parent::__construct(__CLASS__);
- // Set part description
- $this->setObjectDescription("HTTP response");
-
- // Create unique ID number
- $this->generateUniqueId();
-
// Clean up a little
$this->removeNumberFormaters();
$this->removeSystemArray();
* @return void
*/
public final function initTemplateEngine (ManageableApplication $appInstance) {
- $this->templateEngine = $this->prepareTemplateEngine($appInstance);
- }
-
- /**
- * Getter for the template engine instance
- *
- * @return $templateEngine An instance of the used template engine
- */
- public final function getTemplateEngine () {
- return $this->templateEngine;
+ $this->setTemplateInstance($this->prepareTemplateInstance($appInstance));
}
/**
* @todo this will send only one cookie out, the first one.
*/
public function addCookie ($cookieName, $cookieValue, $encrypted = false, $expires = null) {
+ //* DEBUG: */ echo $cookieName."=".$cookieValue."<br />\n";
// Are headers already sent?
if (headers_sent()) {
// Throw an exception here
+ //* DEBUG: */ return;
throw new ResponseHeadersAlreadySentException($this, self::EXCEPTION_HEADERS_ALREADY_SENT);
} // END - if
$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()->readConfig('default_web_command');
+ return $defaultCommand;
+ }
}
// [EOF]