public function loadObject($class = 'stdClass')
	{
		$this->connect();

		$ret = null;

		// Execute the query and get the result set cursor.
		if (!($cursor = $this->execute()))
		{
			return null;
		}

		// Get the first row from the result set as an object of type $class.
		$object = $this->fetchObject($cursor, $class);

		if ($object)
		{
			$ret = $object;
		}

		// Free up system resources and return.
		$this->freeResult($cursor);

		return $ret;
	}
public function loadObject($class = 'stdClass')
	{
		$this->connect();

		$ret = null;

		// Execute the query and get the result set cursor.
		if (!($cursor = $this->execute()))
		{
			return null;
		}

		// Get the first row from the result set as an object of type $class.
		$object = $this->fetchObject($cursor, $class);

		if ($object)
		{
			$ret = $object;
		}

		// Free up system resources and return.
		$this->freeResult($cursor);

		return $ret;
	}
public function loadObject ( $ class = 'stdClass' ) { $ this -> connect ( ) ; $ ret = null ; // Execute the query and get the result set cursor. if ( ! ( $ cursor = $ this -> execute ( ) ) ) { return null ; } // Get the first row from the result set as an object of type $class. $ object = $ this -> fetchObject ( $ cursor , $ class ) ; if ( $ object ) { $ ret = $ object ; } // Free up system resources and return. $ this -> freeResult ( $ cursor ) ; return $ ret ; }
Method to get the first row of the result set from the database query as an object.

@param   string  $class  The class name to use for the returned row object.

@return  mixed  The return value or null if the query failed.

@since   1.0
@throws  \RuntimeException
Method to get the first row of the result set from the database query as an object .