Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 31 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31 Rev 316
Line 305... Line 305...
305
                                    "Unable to include the DB/{$type}.php file",
305
                                    "Unable to include the DB/{$type}.php file",
306
                                    'DB_Error', true);
306
                                    'DB_Error', true);
307
            return $tmp;
307
            return $tmp;
308
        }
308
        }
Line 309... Line 309...
309
 
309
 
Line 310... Line 310...
310
        @$obj =& new $classname;
310
        @$obj = new $classname;
311
 
311
 
312
        foreach ($options as $option => $value) {
312
        foreach ($options as $option => $value) {
313
            $test = $obj->setOption($option, $value);
313
            $test = $obj->setOption($option, $value);
Line 379... Line 379...
379
                                    "Unable to include the DB/{$type}.php file for `$dsn'",
379
                                    "Unable to include the DB/{$type}.php file for `$dsn'",
380
                                    'DB_Error', true);
380
                                    'DB_Error', true);
381
            return $tmp;
381
            return $tmp;
382
        }
382
        }
Line 383... Line 383...
383
 
383
 
Line 384... Line 384...
384
        @$obj =& new $classname;
384
        @$obj = new $classname;
385
 
385
 
386
        foreach ($options as $option => $value) {
386
        foreach ($options as $option => $value) {
387
            $test = $obj->setOption($option, $value);
387
            $test = $obj->setOption($option, $value);
Line 885... Line 885...
885
            if (isset($object_class)) {
885
            if (isset($object_class)) {
886
                // default mode specified in DB_common::fetchmode_object_class property
886
                // default mode specified in DB_common::fetchmode_object_class property
887
                if ($object_class == 'stdClass') {
887
                if ($object_class == 'stdClass') {
888
                    $arr = (object) $arr;
888
                    $arr = (object) $arr;
889
                } else {
889
                } else {
890
                    $arr = &new $object_class($arr);
890
                    $arr = new $object_class($arr);
891
                }
891
                }
892
            }
892
            }
893
            return $arr;
893
            return $arr;
894
        }
894
        }
895
        if ($res == null && $this->autofree) {
895
        if ($res == null && $this->autofree) {