cvs: pear /HTTP_Download Download.php
| From: | Michael Wallner | Date: | Tue, 31 Aug 2004 11:35:24 +0000 |
| Subject: | cvs: pear /HTTP_Download Download.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23531@lists.php.net to get a copy of this message | ||
mike Tue Aug 31 07:35:24 2004 EDT
Modified files:
/pear/HTTP_Download Download.php
Log:
* rename function parameters
http://cvs.php.net/diff.php/pear/HTTP_Download/Download.php?r1=1.43&r2=1.44&ty=u
Index: pear/HTTP_Download/Download.php
diff -u pear/HTTP_Download/Download.php:1.43 pear/HTTP_Download/Download.php:1.44
--- pear/HTTP_Download/Download.php:1.43 Tue Aug 31 07:18:05 2004
+++ pear/HTTP_Download/Download.php Tue Aug 31 07:35:24 2004
@@ -11,7 +11,7 @@
// | Copyright (c) 2003-2004 Michael Wallner <mike@iworks.at> |
// +----------------------------------------------------------------------+
//
-// $Id: Download.php,v 1.43 2004/08/31 11:18:05 mike Exp $
+// $Id: Download.php,v 1.44 2004/08/31 11:35:24 mike Exp $
/**
* Manage HTTP Downloads.
@@ -93,7 +93,7 @@
* if you want to send already gzipped data!
*
* @access public
- * @version $Revision: 1.43 $
+ * @version $Revision: 1.44 $
*/
class HTTP_Download
{
@@ -425,16 +425,16 @@
*
* @access public
* @return mixed Returns true on success or PEAR_Error on failure.
- * @param int $bufferSize Amount of bytes to use as buffer.
+ * @param int $bytes Amount of bytes to use as buffer.
*/
- function setBufferSize($size = 2097152)
+ function setBufferSize($bytes = 2097152)
{
- if (0 >= (int) $size) {
+ if (0 >= (int) $bytes) {
return PEAR::raiseError(
- 'Buffer size must be greater than 0 bytes ('. $size .' given)',
+ 'Buffer size must be greater than 0 bytes ('. $bytes .'
given)',
HTTP_DOWNLOAD_E_INVALID_PARAM);
}
- $this->bufferSize = (int) $size;
+ $this->bufferSize = (int) $bytes;
return true;
}
@@ -459,12 +459,12 @@
*
* @access public
* @return void
- * @param int $sec Amount of seconds to sleep after each
- * chunk that has been sent.
+ * @param int $seconds Amount of seconds to sleep after each
+ * chunk that has been sent.
*/
- function setThrottleDelay($sec = 0)
+ function setThrottleDelay($seconds = 0)
{
- $this->throttleDelay = abs((int) $sec);
+ $this->throttleDelay = abs((int) $seconds);
}
/**