public function setCookie(ICookie $Cookie) { $name = $Cookie->getName(); if (empty($name)) { return false; } $name = $this->getNewOrExistingKeyInArray($name, $this->cookies); $this->cookies[$name] = $Cookie; }
/** * @param $string * @param ICookie $cookie */ protected function writeValue(&$string, ICookie $cookie) { $string .= s('%s=%s;', $cookie->getName(), $cookie->getValue()); }
public function addCookie(ICookie $Cookie) { $key = $this->getNewOrExistingKeyInArray($Cookie->getName(), $this->cookies); $this->cookies[$key] = $Cookie; }