Exemple #1
0
 /**
  * Return a subset of the cookies array matching a specific domain
  *
  * Returned array is actually an array of pointers to items in the $this->cookies array.
  *
  * @param string $domain
  * @return array
  */
 protected function _matchDomain($domain)
 {
     $ret = array();
     foreach (array_keys($this->cookies) as $cdom) {
         if (EHttpCookie::matchCookieDomain($cdom, $domain)) {
             $ret[$cdom] =& $this->cookies[$cdom];
         }
     }
     return $ret;
 }