Class PHPCrawlerDNSCache

Description

Simple DNS-cache used by phpcrawl.

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


	
			
Variable Summary
Method Summary
PHPCrawlerDNSCache __construct ()
string getIP ( $hostname)
bool hostInCache (string $hostname)
Variables
array $host_ip_array (line 15)

Array for caching IPs of the requested hostnames

  • var: Associative array, keys = hostnames, values = IPs.
  • access: protected
Methods
Constructor __construct (line 17)
  • access: public
PHPCrawlerDNSCache __construct ()
getIP (line 26)

Returns the IP for the given hostname.

  • return: The IP-address.
  • access: public
string getIP ( $hostname)
  • $hostname
hostInCache (line 49)

Checks whether a hostname is already cached.

  • access: public
bool hostInCache (string $hostname)
  • string $hostname: The hostname
urlHostInCache (line 61)

Checks whether the hostname of the given URL is already cached

  • access: public
bool urlHostInCache (PHPCrawlerURLDescriptor $URL)

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