"Fossies" - the Fresh Open Source Software Archive

Member "libs/PHPCrawler/CookieCache/PHPCrawlerCookieCacheBase.class.php" (8 Jan 2013, 900 Bytes) of package /linux/www/SitemapCreator.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 /**
    3  * Abstract baseclass for storing cookies.
    4  *
    5  * @package phpcrawl
    6  * @internal
    7  */
    8 abstract class PHPCrawlerCookieCacheBase
    9 {
   10   /**
   11    * Adds a cookie to the cookie-cache.
   12    *
   13    * @param PHPCrawlerCookieDescriptor $Cookie The cookie to add.
   14    */
   15   abstract public function addCookie(PHPCrawlerCookieDescriptor $Cookie);
   16   
   17   /**
   18    * Adds a bunch of cookies to the cookie-cache.
   19    *
   20    * @param array $cookies  Numeric array conatinin the cookies to add as PHPCrawlerCookieDescriptor-objects
   21    */
   22   abstract public function addCookies($cookies);
   23   
   24   /**
   25    * Returns all cookies from the cache that are adressed to the given URL
   26    *
   27    * @param string $target_url The target-URL
   28    * @return array  Numeric array conatining all matching cookies as PHPCrawlerCookieDescriptor-objects
   29    */
   30   abstract public function getCookiesForUrl($target_url);
   31 }
   32 ?>