function fetchObject($className = '\\stdClass', $params = array())
    {
        if ($className) {
            if ($params) {
                return mysqli_fetch_object($this->result, $className, $params);
            } else {
                return mysqli_fetch_object($this->result, $className);
            }
        } else {
            return mysqli_fetch_object($this->result);
        }
    }
function fetchObject($className = '\\stdClass', $params = array())
    {
        if ($className) {
            if ($params) {
                return mysqli_fetch_object($this->result, $className, $params);
            } else {
                return mysqli_fetch_object($this->result, $className);
            }
        } else {
            return mysqli_fetch_object($this->result);
        }
    }
function fetchObject ( $ className = '\\stdClass' , $ params = array ( ) ) { if ( $ className ) { if ( $ params ) { return mysqli_fetch_object ( $ this -> result , $ className , $ params ) ; } else { return mysqli_fetch_object ( $ this -> result , $ className ) ; } } else { return mysqli_fetch_object ( $ this -> result ) ; } }
Returns the current row of a result set as an object
@param string The name of the class to instantiate, set the properties of and return. If not specified, a \stdClass object is returned.
@param array An optional array of parameters to pass to the constructor for class_name objects.
@return object
Returns the current row of a result set as an object