Class PHPCrawlerCookieDescriptor

Description

Describes a cookie within the PHPCrawl-system.

Located in /libs/PHPCrawler/PHPCrawlerCookieDescriptor.class.php (line 7)


	
			
Variable Summary
string $domain
string $expires
string $name
string $path
string $source_url
string $value
Method Summary
static PHPCrawlerCookieDescriptor getFromHeaderLine (string $header_line, string $source_url)
PHPCrawlerCookieDescriptor __construct (string $source_url, string $name, string $value, [string $expires = null], [string $path = null], [string $domain = null])
Variables
float $cookie_send_time = null (line 70)

The time the cookie was send

  • var: time in secs and microseconds
  • access: public
string $domain = null (line 49)

Cookie-domain

  • access: public
string $expires = null (line 28)

Expire-string, e.g. "Sat, 08-Aug-2020 23:59:08 GMT"

  • access: public
int $expire_timestamp = null (line 35)

Expire-date as unix-timestamp

  • access: public
string $name (line 14)

Cookie-name

  • access: public
string $path = null (line 42)

Cookie-path

  • access: public
string $source_domain = null (line 56)

The domain the cookie was send from

  • access: public
string $source_url = null (line 63)

The URL the cookie was send from

  • access: public
string $value (line 21)

Cookie-value

  • access: public
Methods
static method getFromHeaderLine (line 128)

Returns a PHPCrawlerCookieDescriptor-object initiated by the given cookie-header-line.

  • return: The appropriate PHPCrawlerCookieDescriptor-object.
  • access: public
static PHPCrawlerCookieDescriptor getFromHeaderLine (string $header_line, string $source_url)
  • string $header_line: The line from an header defining the cookie, e.g. "VISITOR=4c63394c2d82e31552001a58; expires="Sat, 08-Aug-2020 23:59:08 GMT"; Path=/"
  • string $source_url: URL the cookie was send from.
Constructor __construct (line 83)

Initiates a new PHPCrawlerCookieDescriptor-object.

  • access: public
PHPCrawlerCookieDescriptor __construct (string $source_url, string $name, string $value, [string $expires = null], [string $path = null], [string $domain = null])
  • string $source_url: URL the cookie was send from.
  • string $name: Cookie-name
  • string $value: Cookie-value
  • string $expires: Expire-string, e.g. "Sat, 08-Aug-2020 23:59:08 GMT"
  • string $path: Cookie-path
  • string $domain: Cookie-domain

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