cvs: php4 /pear/Net Dig.php

From: Date: Tue, 13 Mar 2001 17:40:24 +0000
Subject: cvs: php4 /pear/Net Dig.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4540@lists.php.net to get a copy of this message
cmv Tue Mar 13 09:40:24 2001 EDT Modified files: /php4/pear/Net Dig.php Log: add capability to define server in the constructor Index: php4/pear/Net/Dig.php diff -u php4/pear/Net/Dig.php:1.1 php4/pear/Net/Dig.php:1.2 --- php4/pear/Net/Dig.php:1.1 Mon Mar 12 11:30:56 2001 +++ php4/pear/Net/Dig.php Tue Mar 13 09:40:24 2001 @@ -16,7 +16,7 @@ // | Authors: Colin Viebrock <colin@easyDNS.com> | // +----------------------------------------------------------------------+ // -// $Id: Dig.php,v 1.1 2001/03/12 19:30:56 cmv Exp $ +// $Id: Dig.php,v 1.2 2001/03/13 17:40:24 cmv Exp $ // // A nice friendly OO interface to dig // @@ -91,20 +91,23 @@ * The Net_Dig constructor * Called when a new Net_Dig object is initialized * - * @param string [$address] The address to dig (can be set - * using the $address property as well) + * @param string [$address] The address to dig (can be set + * using the $address property as well) * + * @param string [$server] The server to dig at (can be set + * using the $server property as well) + * * @return object Net_Dig $obj A new Net_Dig object * * @access public * @author Colin Viebrock <colin@easyDNS.com> * @since PHP 4.0.5 */ - function Net_Dig($address = false) + function Net_Dig($address = false, $server = false ) { $this->address = $address; - $this->server = false; + $this->server = $server; $this->query_type = false; $this->cmd = '';

« previous php.cvs (#4540) next »