public function fetchObject($class_name = 'stdClass', array $ctor_args = array()) {
		$obj = $this->fetch(PDO::FETCH_OBJ);
		if($class_name == 'stdClass') {
			$res = $obj;
		}
		else {
			$res = $this->populateObject($obj, $class_name, $ctor_args);
		}

		return $res;
	}
public function fetchObject($class_name = 'stdClass', array $ctor_args = array()) {
		$obj = $this->fetch(PDO::FETCH_OBJ);
		if($class_name == 'stdClass') {
			$res = $obj;
		}
		else {
			$res = $this->populateObject($obj, $class_name, $ctor_args);
		}

		return $res;
	}
public function fetchObject ( $ class_name = 'stdClass' , array $ ctor_args = array ( ) ) { $ obj = $ this -> fetch ( PDO :: FETCH_OBJ ) ; if ( $ class_name == 'stdClass' ) { $ res = $ obj ; } else { $ res = $ this -> populateObject ( $ obj , $ class_name , $ ctor_args ) ; } return $ res ; }
Fetches the next row and returns it as an object
@param string $className
@param array $ctor_args
@return mixed
Fetches the next row and returns it as an object