cvs: pear /MDB2/MDB2 LOB.php
| From: | Lukas Smith | Date: | Sat, 04 Sep 2004 22:39:42 +0000 |
| Subject: | cvs: pear /MDB2/MDB2 LOB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23633@lists.php.net to get a copy of this message | ||
lsmith Sat Sep 4 18:39:42 2004 EDT
Modified files:
/pear/MDB2/MDB2 LOB.php
Log:
cosmetic fixes
http://cvs.php.net/diff.php/pear/MDB2/MDB2/LOB.php?r1=1.4&r2=1.5&ty=u
Index: pear/MDB2/MDB2/LOB.php
diff -u pear/MDB2/MDB2/LOB.php:1.4 pear/MDB2/MDB2/LOB.php:1.5
--- pear/MDB2/MDB2/LOB.php:1.4 Sat Sep 4 18:23:06 2004
+++ pear/MDB2/MDB2/LOB.php Sat Sep 4 18:39:42 2004
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: LOB.php,v 1.4 2004/09/04 22:23:06 lsmith Exp $
+// $Id: LOB.php,v 1.5 2004/09/04 22:39:42 lsmith Exp $
//
@@ -62,7 +62,7 @@
*/
class MDB2_LOB
{
- var $db;
+ var $mdb;
var $lob;
var $data = '';
var $position = 0;
@@ -123,17 +123,17 @@
function destroy()
{
- $this->db->datatype->_destroyResultLOB($this->result_lob);
+ $this->mdb->datatype->_destroyResultLOB($this->result_lob);
}
function endOfLOB()
{
- return $this->db->datatype->_endOfResultLOB($this->result_lob);
+ return $this->mdb->datatype->_endOfResultLOB($this->result_lob);
}
function readLOB(&$data, $length)
{
- $read_length = $this->db->datatype->_readResultLOB($this->result_lob, $data,
$length);
+ $read_length = $this->mdb->datatype->_readResultLOB($this->result_lob, $data,
$length);
if (MDB2::isError($read_length)) {
return $read_length;
}
@@ -267,7 +267,7 @@
$this->file = '';
}
if ($this->opened_lob) {
- $this->db->datatype->destroyLOB($this->input_lob);
+ $this->mdb->datatype->destroyLOB($this->input_lob);
$this->input_lob = 0;
$this->opened_lob = false;
}
@@ -275,7 +275,7 @@
function endOfLOB()
{
- return $this->db->datatype->endOfLOB($this->input_lob);
+ return $this->mdb->datatype->endOfLOB($this->input_lob);
}
function readLOB(&$data, $length) {
@@ -283,11 +283,11 @@
$written_full = 0;
do {
for ($written = 0;
- !$this->db->datatype->endOfLOB($this->input_lob)
+ !$this->mdb->datatype->endOfLOB($this->input_lob)
&& $written < $buffer_length;
$written += $read)
{
- $result = $this->db->datatype->readLOB($this->input_lob, $buffer,
$buffer_length);
+ $result = $this->mdb->datatype->readLOB($this->input_lob, $buffer,
$buffer_length);
if (MDB2::isError($result)) {
return $result;
}
@@ -298,7 +298,7 @@
}
}
$written_full += $written;
- } while ($length == 0 &&
!$this->db->datatype->endOfLOB($this->input_lob));
+ } while ($length == 0 &&
!$this->mdb->datatype->endOfLOB($this->input_lob));
return $written_full;
}
}