- 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-xmlschema03.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.62 $ 16 16 * 17 17 * @package axmls … … 138 138 */ 139 139 function dbObject( &$parent, $attributes = NULL ) { 140 $this->parent = &$parent;140 $this->parent = $parent; 141 141 } 142 142 … … 168 168 } 169 169 170 function create( ) {170 function create(&$xmls) { 171 171 return array(); 172 172 } … … 275 275 */ 276 276 function dbTable( &$parent, $attributes = NULL ) { 277 $this->parent = &$parent;277 $this->parent = $parent; 278 278 $this->name = $this->prefix($attributes['NAME']); 279 279 } … … 400 400 * @return object dbIndex object 401 401 */ 402 function &addIndex( $attributes ) {402 function addIndex( $attributes ) { 403 403 $name = strtoupper( $attributes['NAME'] ); 404 $this->indexes[$name] = &new dbIndex( $this, $attributes );404 $this->indexes[$name] = new dbIndex( $this, $attributes ); 405 405 return $this->indexes[$name]; 406 406 } … … 412 412 * @return object dbData object 413 413 */ 414 function &addData( $attributes ) {414 function addData( $attributes ) { 415 415 if( !isset( $this->data ) ) { 416 $this->data = &new dbData( $this, $attributes );416 $this->data = new dbData( $this, $attributes ); 417 417 } 418 418 return $this->data; … … 505 505 */ 506 506 function addTableOpt( $opt ) { 507 if( $this->currentPlatform) {508 $this->opts[] = $opt;507 if(isset($this->currentPlatform)) { 508 $this->opts[$this->parent->db->databaseType] = $opt; 509 509 } 510 510 return $this->opts; 511 511 } 512 512 513 513 514 /** … … 684 685 */ 685 686 function dbIndex( &$parent, $attributes = NULL ) { 686 $this->parent = &$parent;687 $this->parent = $parent; 687 688 688 689 $this->name = $this->prefix ($attributes['NAME']); … … 829 830 */ 830 831 function dbData( &$parent, $attributes = NULL ) { 831 $this->parent = &$parent;832 $this->parent = $parent; 832 833 } 833 834 … … 1085 1086 */ 1086 1087 function dbQuerySet( &$parent, $attributes = NULL ) { 1087 $this->parent = &$parent;1088 $this->parent = $parent; 1088 1089 1089 1090 // Overrides the manual prefix key … … 1310 1311 * 1311 1312 * @author Richard Tango-Lowy & Dan Cech 1312 * @version $Revision $1313 * @version $Revision: 1.62 $ 1313 1314 * 1314 1315 * @package axmls … … 1405 1406 * @param object $db ADOdb database connection object. 1406 1407 */ 1407 function adoSchema( &$db ) {1408 function adoSchema( $db ) { 1408 1409 // Initialize the environment 1409 1410 $this->mgq = get_magic_quotes_runtime(); 1410 set_magic_quotes_runtime(0); 1411 1412 $this->db =& $db; 1411 #set_magic_quotes_runtime(0); 1412 ini_set("magic_quotes_runtime", 0); 1413 1414 $this->db = $db; 1413 1415 $this->debug = $this->db->debug; 1414 1416 $this->dict = NewDataDictionary( $this->db ); … … 1498 1500 break; 1499 1501 default: 1500 $mode = XMLS_EXIS ITNG_DATA;1502 $mode = XMLS_EXISTING_DATA; 1501 1503 break; 1502 1504 } … … 1786 1788 * @access private 1787 1789 */ 1788 function &create_parser() {1790 function create_parser() { 1789 1791 // Create the parser 1790 1792 $xmlParser = xml_parser_create(); … … 2374 2376 */ 2375 2377 function Destroy() { 2376 set_magic_quotes_runtime( $this->mgq ); 2378 ini_set("magic_quotes_runtime", $this->mgq ); 2379 #set_magic_quotes_runtime( $this->mgq ); 2377 2380 unset( $this ); 2378 2381 }
Note: See TracChangeset
for help on using the changeset viewer.