Class PHPCrawlerSQLiteCookieCache

Description

Class for storing/caching cookies in a SQLite-db-file.

Located in /libs/PHPCrawler/CookieCache/PHPCrawlerSQLiteCookieCache.class.php (line 8)

PHPCrawlerCookieCacheBase
   |
   --PHPCrawlerSQLiteCookieCache
Variable Summary
mixed $PDO
Method Summary
PHPCrawlerSQLiteCookieCache __construct ( $sqlite_db_file, [ $create_tables = false])
void addCookies (array $cookies)
array getCookiesForUrl (string $target_url)
void openConnection ([bool $create_tables = false])
Variables
mixed $PDO (line 10)
  • access: protected
mixed $sqlite_db_file (line 12)
  • access: protected
Methods
Constructor __construct (line 14)
  • access: public
PHPCrawlerSQLiteCookieCache __construct ( $sqlite_db_file, [ $create_tables = false])
  • $sqlite_db_file
  • $create_tables
addCookie (line 25)

Adds a cookie to the cookie-cache.

  • access: public
void addCookie (PHPCrawlerCookieDescriptor $Cookie)

Redefinition of:
PHPCrawlerCookieCacheBase::addCookie()
Adds a cookie to the cookie-cache.
addCookies (line 53)

Adds a bunch of cookies to the cookie-cache.

  • access: public
void addCookies (array $cookies)
  • array $cookies: Numeric array conatining the cookies to add as PHPCrawlerCookieDescriptor-objects

Redefinition of:
PHPCrawlerCookieCacheBase::addCookies()
Adds a bunch of cookies to the cookie-cache.
getCookiesForUrl (line 75)

Returns all cookies from the cache that are adressed to the given URL

  • return: Numeric array conatining all matching cookies as PHPCrawlerCookieDescriptor-objects
  • access: public
array getCookiesForUrl (string $target_url)
  • string $target_url: The target-URL

Redefinition of:
PHPCrawlerCookieCacheBase::getCookiesForUrl()
Returns all cookies from the cache that are adressed to the given URL
openConnection (line 117)

Creates the sqlite-db-file and opens connection to it.

  • access: protected
void openConnection ([bool $create_tables = false])
  • bool $create_tables: Defines whether all necessary tables should be created

Inherited Methods

Inherited From PHPCrawlerCookieCacheBase

PHPCrawlerCookieCacheBase::addCookie()
PHPCrawlerCookieCacheBase::addCookies()
PHPCrawlerCookieCacheBase::getCookiesForUrl()

Documentation generated on Sun, 20 Jan 2013 21:18:50 +0200 by phpDocumentor 1.4.4