src/AbstractMediawikiObject.php
protected function fetchUrl($path)
	{
		// Append the path with output format
		$path .= '&format=xml';

		$uri = new Uri($this->options->get('api.url') . '/api.php' . $path);

		if ($this->options->get('api.username', false))
		{
			$uri->setUser($this->options->get('api.username'));
		}

		if ($this->options->get('api.password', false))
		{
			$uri->setPass($this->options->get('api.password'));
		}

		return (string) $uri;
	}
protected function fetchUrl($path)
	{
		// Append the path with output format
		$path .= '&format=xml';

		$uri = new Uri($this->options->get('api.url') . '/api.php' . $path);

		if ($this->options->get('api.username', false))
		{
			$uri->setUser($this->options->get('api.username'));
		}

		if ($this->options->get('api.password', false))
		{
			$uri->setPass($this->options->get('api.password'));
		}

		return (string) $uri;
	}
protected function fetchUrl ( $ path ) { // Append the path with output format $ path .= '&format=xml' ; $ uri = new Uri ( $ this -> options -> get ( 'api.url' ) . '/api.php' . $ path ) ; if ( $ this -> options -> get ( 'api.username' , false ) ) { $ uri -> setUser ( $ this -> options -> get ( 'api.username' ) ) ; } if ( $ this -> options -> get ( 'api.password' , false ) ) { $ uri -> setPass ( $ this -> options -> get ( 'api.password' ) ) ; } return ( string ) $ uri ; }
Method to build and return a full request URL for the request.

@param   string  $path  URL to inflect

@return  string   The request URL.

@since   1.0
Method to build and return a full request URL for the request .