Project

General

Profile

« Previous | Next » 

Revision 2011

Added by darkviper almost 11 years ago

! WbDatabase added method fetchObject()
! WbAdaptor little typofixes
! /index.php added one more update of WbAdaptor

View differences:

WbDatabase.php
615 615
class mysql {
616 616

  
617 617
	private $result = null;
618
	private $_db_handle = null;
618
	private $oDbHandle = null;
619 619

  
620 620
/**
621 621
 * query sql statement
......
666 666
 */
667 667
	function fetchObject($sClassName = null, array $aParams = null)
668 668
	{
669
		return mysql_fetch_object($this->result, $sClassName, $aParams);
669
		if ($sClassName === null || class_exists($sClassName)) {
670
			return mysql_fetch_object($this->result, $sClassName, $aParams);
671
		} else {
672
			throw new WbDatabaseException('Class <'.$sClassName.'> not available on request of mysql_fetch_object()');
673
		}
670 674
	}
671 675
/**
672 676
 * rewind

Also available in: Unified diff