cvs: pear /MDB2/MDB2 LOB.php

From: Date: Sun, 20 Feb 2005 17:42:02 +0000
Subject: cvs: pear /MDB2/MDB2 LOB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29540@lists.php.net to get a copy of this message
lsmith Sun Feb 20 12:42:02 2005 EDT Modified files: /pear/MDB2/MDB2 LOB.php Log: - removed input file class that was commented out a while ago http://cvs.php.net/diff.php/pear/MDB2/MDB2/LOB.php?r1=1.10&r2=1.11&ty=u Index: pear/MDB2/MDB2/LOB.php diff -u pear/MDB2/MDB2/LOB.php:1.10 pear/MDB2/MDB2/LOB.php:1.11 --- pear/MDB2/MDB2/LOB.php:1.10 Sun Jan 2 16:44:24 2005 +++ pear/MDB2/MDB2/LOB.php Sun Feb 20 12:42:01 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: LOB.php,v 1.10 2005/01/02 21:44:24 lsmith Exp $ +// $Id: LOB.php,v 1.11 2005/02/20 17:42:01 lsmith Exp $ // @@ -146,69 +146,6 @@ } /** - * MDB2 Large Object (BLOB/CLOB) class to read file into DB - * - * @package MDB2 - * @category Database - * @access private - * @author Lukas Smith <smith@backendmedia.com> - */ -/* -class MDB2_LOB_Input_File extends MDB2_LOB -{ - var $file = ''; - var $opened_file = false; - - function create(&$arguments) - { - if (isset($arguments['parameter'])) { - $this->parameter = $arguments['parameter']; - } - if (isset($arguments['file'])) { - if (intval($arguments['file']) == 0) { - return MDB2_Driver_Common::raiseError(MDB2_ERROR_INVALID, null, null, - 'MDB2_LOB_Input_File::create: it was specified an invalid input file identifier'); - } - $this->file = $arguments['file']; - } else { - if (isset($arguments['file_name'])) { - if ((!$this->file = fopen($arguments['file_name'], 'rb'))) { - return MDB2_Driver_Common::raiseError(MDB2_ERROR_NOT_FOUND, null, null, - 'MDB2_LOB_Input_File::create: could not open specified input file ("'.$arguments['file_name'].'")'); - } - $this->opened_file = true; - } else { - return MDB2_Driver_Common::raiseError(MDB2_ERROR_NEED_MORE_DATA, null, null, - 'MDB2_LOB_Input_File::create: it was not specified the input file'); - } - } - return MDB2_OK; - } - - function destroy() - { - if ($this->opened_file) { - fclose($this->file); - $this->file = ''; - $this->opened_file = false; - } - } - - function endOfLOB() { - return feof($this->file); - } - - function readLOB(&$data, $length) - { - if (!is_string($data = @fread($this->file, $length))) { - return MDB2_Driver_Common::raiseError(MDB2_ERROR, null, null, - 'MDB2_LOB_Input_File::readLOB: could not read from the input file'); - } - return strlen($data); - } -} -*/ -/** * MDB2 Large Object (BLOB/CLOB) class to read into a file from DB * * @package MDB2

« previous php.pear.cvs (#29540) next »