cvs: pear /MDB lob.php

From: Date: Wed, 17 Jul 2002 11:19:24 +0000
Subject: cvs: pear /MDB lob.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5149@lists.php.net to get a copy of this message
lsmith Wed Jul 17 07:19:24 2002 EDT Modified files: /pear/MDB lob.php Log: cosmetic changes changed the names of the lob classes to match the following format: MDB_lob_* Index: pear/MDB/lob.php diff -u pear/MDB/lob.php:1.7 pear/MDB/lob.php:1.8 --- pear/MDB/lob.php:1.7 Thu Jul 4 15:09:10 2002 +++ pear/MDB/lob.php Wed Jul 17 07:19:24 2002 @@ -42,11 +42,15 @@ // | Author: Lukas Smith <smith@dybnet.de> | // +----------------------------------------------------------------------+ // -// $Id: lob.php,v 1.7 2002/07/04 19:09:10 lsmith Exp $ +// $Id: lob.php,v 1.8 2002/07/17 11:19:24 lsmith Exp $ // // MDB LOB classes. // +if(!defined("MDB_LOB_INCLUDED")) +{ + define("MDB_LOB_INCLUDED",1); + $lobs = array(); class MDB_lob extends PEAR @@ -84,7 +88,7 @@ } }; -class MDB_result_lob extends MDB_lob +class MDB_lob_result extends MDB_lob { var $result_lob = 0; @@ -95,7 +99,7 @@ return(0); } $this->result_lob = $arguments["ResultLOB"]; - return(1); + return (DB_OK); } function destroy() @@ -117,7 +121,7 @@ } }; -class MDB_input_file_lob extends MDB_lob +class MDB_lob_input_file extends MDB_lob { var $file = 0; var $opened_file = 0; @@ -170,7 +174,7 @@ } }; -class MDB_output_file_lob extends MDB_lob +class MDB_lob_output_file extends MDB_lob { var $file = 0; var $opened_file = 0; @@ -285,17 +289,17 @@ global $lobs; $lob = count($lobs)+1; - $class = "MDB_lob"; + $class_name = "MDB_lob"; if(isset($arguments["Type"])) { switch($arguments["Type"]) { case "resultlob": - $class="MDB_result_lob"; + $class_name = "MDB_lob_result"; break; case "inputfile": - $class="MDB_input_file_lob"; + $class_name = "MDB_lob_input_file"; break; case "outputfile": - $class="MDB_output_file_lob"; + $class_name = "MDB_lob_output_file"; break; default: if(isset($arguments["Error"])) { @@ -308,8 +312,9 @@ $class = $arguments["Class"]; } } - $lobs[$lob] = new $class; + $lobs[$lob] = new $class_name; $lobs[$lob]->lob = $lob; + if(isset($arguments["Database"])) { $lobs[$lob]->database = $arguments["Database"]; } @@ -352,5 +357,7 @@ global $lobs; return($lobs[$lob]->error); +} + } ?>

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