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