cvs: pear /XML_sql2xml sql2xml.php

From: Date: Tue, 19 Nov 2002 15:14:01 +0000
Subject: cvs: pear /XML_sql2xml sql2xml.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7494@lists.php.net to get a copy of this message
chregu Tue Nov 19 10:14:01 2002 EDT Modified files: /pear/XML_sql2xml sql2xml.php Log: fixed some errors with " Call-time pass-by-reference " thanks to domitry lebedev Index: pear/XML_sql2xml/sql2xml.php diff -u pear/XML_sql2xml/sql2xml.php:1.9 pear/XML_sql2xml/sql2xml.php:1.10 --- pear/XML_sql2xml/sql2xml.php:1.9 Tue Dec 11 14:45:55 2001 +++ pear/XML_sql2xml/sql2xml.php Tue Nov 19 10:14:01 2002 @@ -15,7 +15,7 @@ // | Authors: Christian Stocker <chregu@phant.ch> | // +----------------------------------------------------------------------+ // -// $Id: sql2xml.php,v 1.9 2001/12/11 19:45:55 sebastian Exp $ +// $Id: sql2xml.php,v 1.10 2002/11/19 15:14:01 chregu Exp $ /** * This class takes a PEAR::DB-Result Object, a sql-query-string or an array @@ -48,7 +48,7 @@ * http://php.chregu.tv/sql2xml * * @author Christian Stocker <chregu@nomad.ch> -* @version $Id: sql2xml.php,v 1.9 2001/12/11 19:45:55 sebastian Exp $ +* @version $Id: sql2xml.php,v 1.10 2002/11/19 15:14:01 chregu Exp $ * @package XML */ class XML_sql2xml { @@ -358,7 +358,7 @@ */ function addArray ($array) { - $parent_row = $this->insertNewResult(&$metadata); + $parent_row = $this->insertNewResult($metadata); $this->DoArray2Xml($array,$parent_row); } @@ -467,7 +467,7 @@ } //if you need more tableInfo for later use you can write a function addTableInfo.. - $this->addTableInfo($key, $value, &$tableInfo); + $this->addTableInfo($key, $value, $tableInfo); } // end initialize @@ -477,7 +477,7 @@ { $tableInfo = $this->array_merge_clobber($tableInfo,$this->user_tableInfo); } - $parent['root'] = $this->insertNewResult(&$tableInfo); + $parent['root'] = $this->insertNewResult($tableInfo); //initialize $resold to get rid of warning messages; $resold[0] = "ThisValueIsImpossibleForTheFirstFieldInTheFirstRow"; @@ -498,7 +498,7 @@ if ($this->nested || $key == 0) { - $parent[$tableInfo[$key]["table"]] = $this->insertNewRow($parent[$tableInfo["parent_table"][$tableInfo[$key]["table"]]], $res, $key, &$tableInfo); + $parent[$tableInfo[$key]["table"]] = $this->insertNewRow($parent[$tableInfo["parent_table"][$tableInfo[$key]["table"]]], $res, $key, $tableInfo); } else { @@ -517,7 +517,7 @@ } if ( $parent[$tableInfo[$key]["table"]] != Null) { - $this->insertNewElement($parent[$tableInfo[$key]["table"]], $res, $key, &$tableInfo, &$subrow); + $this->insertNewElement($parent[$tableInfo[$key]["table"]], $res, $key, $tableInfo, $subrow); } } @@ -568,11 +568,11 @@ $keynew = $key; } - $rec2 = $this->insertNewRow($parent, $valuenew, $keynew, &$tableInfo); + $rec2 = $this->insertNewRow($parent, $valuenew, $keynew, $tableInfo); $this->DoArray2xml($value,$rec2); } else { - $this->insertNewElement($parent, $array, $key, &$tableInfo,&$subrow); + $this->insertNewElement($parent, $array, $key, $tableInfo, $subrow); } }

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