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 <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $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 <[EMAIL PROTECTED]>
* @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 = '';
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]