Wallogit.com
2017 © Pedro Peláez
All classes take an optional final parameter that is an array containing key => value pairs that can be used to override certain protected properties. Overrideable parameters set in each class' private $overrides parameter, and are detailed below., (*1)
Public Methods:, (*2)
void __construct(array $params = [])string query(string $domain)static string stripComments(string $input, bool $strip_blank = true, string $regex = '/^(?:#|%).*$/')
# or %.Overrideable Parameters:, (*3)
max_response_size - The maximum amount of data, in bytes, to accept from a WHOIS response. [Default: 20480]normalize_line_breaks - If true replaces all instances of \r\n with \n. [Default: true]Public Methods:, (*4)
Whois.void __construct(\PDO $dbh, array $params = [])static boolean initDB(\PDO $dbh)
CREATE TABLE IF NOT EXISTS statement to create table, see src/CachedWhois.php.Overrideable Parameters:, (*5)
cache_lifetime - Length of time, is seconds, to cache a TLD WHOIS server referral. [Default 604800 aka 7 days]Public Methods:, (*6)
Whois.void __construct(array $params=[])string function query(string $ipaddr)static bool validateIP(string $ipaddr)Overrideable Parameters: None, (*7)
string query(string $domain)static string stripComments(string $input, bool $strip_blank = true, string $regex = '/^(?:#|%).*$/')CachedIPWhois ClassIPWhois::validate() check for reserved addresses.