- Timestamp:
- 09/26/13 15:41:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/adodb-xmlschema.inc.php
r34 r8222 11 11 * XML schema. 12 12 * 13 * Last Editor: $Author $13 * Last Editor: $Author: jlim $ 14 14 * @author Richard Tango-Lowy & Dan Cech 15 * @version $Revision $15 * @version $Revision: 1.12 $ 16 16 * 17 17 * @package axmls … … 120 120 */ 121 121 function dbObject( &$parent, $attributes = NULL ) { 122 $this->parent = &$parent;122 $this->parent = $parent; 123 123 } 124 124 … … 150 150 } 151 151 152 function create( ) {152 function create(&$xmls) { 153 153 return array(); 154 154 } … … 250 250 */ 251 251 function dbTable( &$parent, $attributes = NULL ) { 252 $this->parent = &$parent;252 $this->parent = $parent; 253 253 $this->name = $this->prefix($attributes['NAME']); 254 254 } … … 363 363 * @return object dbIndex object 364 364 */ 365 function &addIndex( $attributes ) {365 function addIndex( $attributes ) { 366 366 $name = strtoupper( $attributes['NAME'] ); 367 $this->indexes[$name] = &new dbIndex( $this, $attributes );367 $this->indexes[$name] = new dbIndex( $this, $attributes ); 368 368 return $this->indexes[$name]; 369 369 } … … 375 375 * @return object dbData object 376 376 */ 377 function &addData( $attributes ) {377 function addData( $attributes ) { 378 378 if( !isset( $this->data ) ) { 379 $this->data = &new dbData( $this, $attributes );379 $this->data = new dbData( $this, $attributes ); 380 380 } 381 381 return $this->data; … … 464 464 */ 465 465 function addTableOpt( $opt ) { 466 $this->opts[] = $opt; 467 466 if(isset($this->currentPlatform)) { 467 $this->opts[$this->parent->db->databaseType] = $opt; 468 } 468 469 return $this->opts; 469 470 } 471 470 472 471 473 /** … … 642 644 */ 643 645 function dbIndex( &$parent, $attributes = NULL ) { 644 $this->parent = &$parent;646 $this->parent = $parent; 645 647 646 648 $this->name = $this->prefix ($attributes['NAME']); … … 786 788 */ 787 789 function dbData( &$parent, $attributes = NULL ) { 788 $this->parent = &$parent;790 $this->parent = $parent; 789 791 } 790 792 … … 985 987 */ 986 988 function dbQuerySet( &$parent, $attributes = NULL ) { 987 $this->parent = &$parent;989 $this->parent = $parent; 988 990 989 991 // Overrides the manual prefix key … … 1210 1212 * 1211 1213 * @author Richard Tango-Lowy & Dan Cech 1212 * @version $Revision $1214 * @version $Revision: 1.12 $ 1213 1215 * 1214 1216 * @package axmls … … 1300 1302 * @param object $db ADOdb database connection object. 1301 1303 */ 1302 function adoSchema( &$db ) {1304 function adoSchema( $db ) { 1303 1305 // Initialize the environment 1304 1306 $this->mgq = get_magic_quotes_runtime(); 1305 set_magic_quotes_runtime(0); 1306 1307 $this->db =& $db; 1307 ini_set("magic_quotes_runtime", 0); 1308 #set_magic_quotes_runtime(0); 1309 1310 $this->db = $db; 1308 1311 $this->debug = $this->db->debug; 1309 1312 $this->dict = NewDataDictionary( $this->db ); … … 1628 1631 * @access private 1629 1632 */ 1630 function &create_parser() {1633 function create_parser() { 1631 1634 // Create the parser 1632 1635 $xmlParser = xml_parser_create(); … … 2192 2195 */ 2193 2196 function Destroy() { 2194 set_magic_quotes_runtime( $this->mgq ); 2197 ini_set("magic_quotes_runtime", $this->mgq ); 2198 #set_magic_quotes_runtime( $this->mgq ); 2195 2199 unset( $this ); 2196 2200 }
Note: See TracChangeset
for help on using the changeset viewer.