protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
* @todo This should be connected to a caching class to cache DNS requests
*/
public static function resolveIpAddress ($hostname) {
* @todo This should be connected to a caching class to cache DNS requests
*/
public static function resolveIpAddress ($hostname) {
- // Debug message
- self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:] Host name to resolve is: %s',
- __CLASS__,
- $hostname
- ));
+ // Quiet?
+ if (self::$quietResolver !== TRUE) {
+ // Debug message
+ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:] Host name to resolve is: %s',
+ __CLASS__,
+ $hostname
+ ));
+ } // END - if
- // Debug message
- self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:] Resolved IP address is: %s',
- __CLASS__,
- $ipAddress
- ));
+ // Quiet?
+ if (self::$quietResolver !== TRUE) {
+ // Debug message
+ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:] Resolved IP address is: %s',
+ __CLASS__,
+ $ipAddress
+ ));
+ } // END - if
} else {
// Problem while resolving IP address
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:] Problem resolving IP address for host %s. Please check your /etc/hosts file.',
} else {
// Problem while resolving IP address
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:] Problem resolving IP address for host %s. Please check your /etc/hosts file.',