- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * @param $appInstance An instance of a manageable application
- * @return $responseInstance A prepared instance of this class
+ * @param $applicationInstance An instance of a manageable application
+ * @return $responseInstance A prepared instance of this class
$cfg->setConfigEntry('raw_template_extension' , '.img');
$cfg->setConfigEntry('code_template_extension', '.xml');
$cfg->setConfigEntry('tpl_base_path' , 'templates/images/');
$cfg->setConfigEntry('code_template_type' , 'image');
// Get a prepared instance
$cfg->setConfigEntry('raw_template_extension' , '.img');
$cfg->setConfigEntry('code_template_extension', '.xml');
$cfg->setConfigEntry('tpl_base_path' , 'templates/images/');
$cfg->setConfigEntry('code_template_type' , 'image');
// Get a prepared instance
* @todo If the return statement is removed and setcookie() commented out,
* @todo this will send only one cookie out, the first one.
*/
* @todo If the return statement is removed and setcookie() commented out,
* @todo this will send only one cookie out, the first one.
*/
- public function addCookie ($cookieName, $cookieValue, $encrypted = false, $expires = null) {
+ public function addCookie ($cookieName, $cookieValue, $encrypted = FALSE, $expires = NULL) {
- $cookieString .= "expires=" . date("D, d-F-Y H:i:s", $expires) . " GMT";
- // $cookieString .= "; path=".$path."; domain=".$domain;
+ $cookieString .= 'expires=' . date('D, d-F-Y H:i:s', $expires) . ' GMT';
+ // TODO Why is this not always working? $cookieString .= '; path=' . $path . '; domain=' . $domain;
$this->getTemplateInstance()->assignApplicationData($this->getApplicationInstance());
// Get the url from config
$this->getTemplateInstance()->assignApplicationData($this->getApplicationInstance());
// Get the url from config
- $this->addCookie($cookieName, '', false, (time() - 1200));
+ $this->addCookie($cookieName, '', FALSE, (time() - 1200));