public function loadObject($class = 'stdClass')
	{
		// Initialise variables
		$return = null;

		// Execute the query
		if (!$this->execute())
		{
			return null;
		}

		// Get the first row from the result set as an object of type $class
		if ($row = $this->fetchObject($class))
		{
			$return = $row;
		}

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

		return $return;
	}
public function loadObject($class = 'stdClass')
	{
		// Initialise variables
		$return = null;

		// Execute the query
		if (!$this->execute())
		{
			return null;
		}

		// Get the first row from the result set as an object of type $class
		if ($row = $this->fetchObject($class))
		{
			$return = $row;
		}

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

		return $return;
	}
public function loadObject ( $ class = 'stdClass' ) { // Initialise variables $ return = null ; // Execute the query if ( ! $ this -> execute ( ) ) { return null ; } // Get the first row from the result set as an object of type $class if ( $ row = $ this -> fetchObject ( $ class ) ) { $ return = $ row ; } // Free up system resources and return $ this -> freeResult ( ) ; return $ return ; }
Gets 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  object|null
@since   2.0.0
Gets the first row of the result set from the database query as an object