Ignore:
Timestamp:
09/26/13 15:41:49 (11 years ago)
Author:
angelo
Message:

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/adodb-xmlschema03.inc.php

    r34 r8222  
    1111 * XML schema. 
    1212 * 
    13  * Last Editor: $Author$ 
     13 * Last Editor: $Author: jlim $ 
    1414 * @author Richard Tango-Lowy & Dan Cech 
    15  * @version $Revision$ 
     15 * @version $Revision: 1.62 $ 
    1616 * 
    1717 * @package axmls 
     
    138138        */ 
    139139        function dbObject( &$parent, $attributes = NULL ) { 
    140                 $this->parent =& $parent; 
     140                $this->parent = $parent; 
    141141        } 
    142142         
     
    168168        } 
    169169         
    170         function create() { 
     170        function create(&$xmls) { 
    171171                return array(); 
    172172        } 
     
    275275        */ 
    276276        function dbTable( &$parent, $attributes = NULL ) { 
    277                 $this->parent =& $parent; 
     277                $this->parent = $parent; 
    278278                $this->name = $this->prefix($attributes['NAME']); 
    279279        } 
     
    400400        * @return object dbIndex object 
    401401        */ 
    402         function &addIndex( $attributes ) { 
     402        function addIndex( $attributes ) { 
    403403                $name = strtoupper( $attributes['NAME'] ); 
    404                 $this->indexes[$name] =& new dbIndex( $this, $attributes ); 
     404                $this->indexes[$name] = new dbIndex( $this, $attributes ); 
    405405                return $this->indexes[$name]; 
    406406        } 
     
    412412        * @return object dbData object 
    413413        */ 
    414         function &addData( $attributes ) { 
     414        function addData( $attributes ) { 
    415415                if( !isset( $this->data ) ) { 
    416                         $this->data =& new dbData( $this, $attributes ); 
     416                        $this->data = new dbData( $this, $attributes ); 
    417417                } 
    418418                return $this->data; 
     
    505505        */ 
    506506        function addTableOpt( $opt ) { 
    507                 if( $this->currentPlatform ) { 
    508                 $this->opts[] = $opt; 
     507                if(isset($this->currentPlatform)) { 
     508                        $this->opts[$this->parent->db->databaseType] = $opt; 
    509509                } 
    510510                return $this->opts; 
    511511        } 
     512 
    512513         
    513514        /** 
     
    684685        */ 
    685686        function dbIndex( &$parent, $attributes = NULL ) { 
    686                 $this->parent =& $parent; 
     687                $this->parent = $parent; 
    687688                 
    688689                $this->name = $this->prefix ($attributes['NAME']); 
     
    829830        */ 
    830831        function dbData( &$parent, $attributes = NULL ) { 
    831                 $this->parent =& $parent; 
     832                $this->parent = $parent; 
    832833        } 
    833834         
     
    10851086        */ 
    10861087        function dbQuerySet( &$parent, $attributes = NULL ) { 
    1087                 $this->parent =& $parent; 
     1088                $this->parent = $parent; 
    10881089                         
    10891090                // Overrides the manual prefix key 
     
    13101311* 
    13111312* @author Richard Tango-Lowy & Dan Cech 
    1312 * @version $Revision$ 
     1313* @version $Revision: 1.62 $ 
    13131314* 
    13141315* @package axmls 
     
    14051406        * @param object $db ADOdb database connection object. 
    14061407        */ 
    1407         function adoSchema( &$db ) { 
     1408        function adoSchema( $db ) { 
    14081409                // Initialize the environment 
    14091410                $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; 
    14131415                $this->debug = $this->db->debug; 
    14141416                $this->dict = NewDataDictionary( $this->db ); 
     
    14981500                                        break; 
    14991501                                default: 
    1500                                         $mode = XMLS_EXISITNG_DATA; 
     1502                                        $mode = XMLS_EXISTING_DATA; 
    15011503                                        break; 
    15021504                        } 
     
    17861788        * @access private 
    17871789        */ 
    1788         function &create_parser() { 
     1790        function create_parser() { 
    17891791                // Create the parser 
    17901792                $xmlParser = xml_parser_create(); 
     
    23742376        */ 
    23752377        function Destroy() { 
    2376                 set_magic_quotes_runtime( $this->mgq ); 
     2378                ini_set("magic_quotes_runtime", $this->mgq ); 
     2379                #set_magic_quotes_runtime( $this->mgq ); 
    23772380                unset( $this ); 
    23782381        } 
Note: See TracChangeset for help on using the changeset viewer.