_flattenCookiesArray example


    }

    /** * Get all cookies in the cookie jar as an array * * @param int $ret_as Whether to return cookies as objects of Zend_Http_Cookie or as strings * @return array|string */
    public function getAllCookies($ret_as = self::COOKIE_OBJECT)
    {
        $cookies = $this->_flattenCookiesArray($this->cookies, $ret_as);
        if($ret_as == self::COOKIE_STRING_CONCAT_STRICT) {
            $cookies = rtrim(trim($cookies), ';');
        }
        return $cookies;
    }

    /** * Return an array of all cookies matching a specific request according to the request URI, * whether session cookies should be sent or not, and the time to consider as "now" when * checking cookie expiry time. * * @param string|Zend_Uri_Http $uri URI to check against (secure, domain, path) * @param boolean $matchSessionCookies Whether to send session cookies * @param int $ret_as Whether to return cookies as objects of Zend_Http_Cookie or as strings * @param int $now Override the current time when checking for expiry time * @return array|string */
Home | Imprint | This part of the site doesn't use cookies.