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-xmlschema.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.12 $ 
    1616 * 
    1717 * @package axmls 
     
    120120        */ 
    121121        function dbObject( &$parent, $attributes = NULL ) { 
    122                 $this->parent =& $parent; 
     122                $this->parent = $parent; 
    123123        } 
    124124         
     
    150150        } 
    151151         
    152         function create() { 
     152        function create(&$xmls) { 
    153153                return array(); 
    154154        } 
     
    250250        */ 
    251251        function dbTable( &$parent, $attributes = NULL ) { 
    252                 $this->parent =& $parent; 
     252                $this->parent = $parent; 
    253253                $this->name = $this->prefix($attributes['NAME']); 
    254254        } 
     
    363363        * @return object dbIndex object 
    364364        */ 
    365         function &addIndex( $attributes ) { 
     365        function addIndex( $attributes ) { 
    366366                $name = strtoupper( $attributes['NAME'] ); 
    367                 $this->indexes[$name] =& new dbIndex( $this, $attributes ); 
     367                $this->indexes[$name] = new dbIndex( $this, $attributes ); 
    368368                return $this->indexes[$name]; 
    369369        } 
     
    375375        * @return object dbData object 
    376376        */ 
    377         function &addData( $attributes ) { 
     377        function addData( $attributes ) { 
    378378                if( !isset( $this->data ) ) { 
    379                         $this->data =& new dbData( $this, $attributes ); 
     379                        $this->data = new dbData( $this, $attributes ); 
    380380                } 
    381381                return $this->data; 
     
    464464        */ 
    465465        function addTableOpt( $opt ) { 
    466                 $this->opts[] = $opt; 
    467                  
     466                if(isset($this->currentPlatform)) { 
     467                        $this->opts[$this->parent->db->databaseType] = $opt; 
     468                } 
    468469                return $this->opts; 
    469470        } 
     471 
    470472         
    471473        /** 
     
    642644        */ 
    643645        function dbIndex( &$parent, $attributes = NULL ) { 
    644                 $this->parent =& $parent; 
     646                $this->parent = $parent; 
    645647                 
    646648                $this->name = $this->prefix ($attributes['NAME']); 
     
    786788        */ 
    787789        function dbData( &$parent, $attributes = NULL ) { 
    788                 $this->parent =& $parent; 
     790                $this->parent = $parent; 
    789791        } 
    790792         
     
    985987        */ 
    986988        function dbQuerySet( &$parent, $attributes = NULL ) { 
    987                 $this->parent =& $parent; 
     989                $this->parent = $parent; 
    988990                         
    989991                // Overrides the manual prefix key 
     
    12101212* 
    12111213* @author Richard Tango-Lowy & Dan Cech 
    1212 * @version $Revision$ 
     1214* @version $Revision: 1.12 $ 
    12131215* 
    12141216* @package axmls 
     
    13001302        * @param object $db ADOdb database connection object. 
    13011303        */ 
    1302         function adoSchema( &$db ) { 
     1304        function adoSchema( $db ) { 
    13031305                // Initialize the environment 
    13041306                $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; 
    13081311                $this->debug = $this->db->debug; 
    13091312                $this->dict = NewDataDictionary( $this->db ); 
     
    16281631        * @access private 
    16291632        */ 
    1630         function &create_parser() { 
     1633        function create_parser() { 
    16311634                // Create the parser 
    16321635                $xmlParser = xml_parser_create(); 
     
    21922195        */ 
    21932196        function Destroy() { 
    2194                 set_magic_quotes_runtime( $this->mgq ); 
     2197                ini_set("magic_quotes_runtime", $this->mgq ); 
     2198                #set_magic_quotes_runtime( $this->mgq ); 
    21952199                unset( $this ); 
    21962200        } 
Note: See TracChangeset for help on using the changeset viewer.