WordPress at Your Fingertips
function is not described

SimplePie_IRI::get_iauthority() protected WP 1.0

Get the complete iauthority

{} It's a method of the class: SimplePie_IRI{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_iauthority();

Code of SimplePie_IRI::get_iauthority() WP 5.8.2

protected function get_iauthority()
{
	if ($this->iuserinfo !== null || $this->ihost !== null || $this->port !== null)
	{
		$iauthority = '';
		if ($this->iuserinfo !== null)
		{
			$iauthority .= $this->iuserinfo . '@';
		}
		if ($this->ihost !== null)
		{
			$iauthority .= $this->ihost;
		}
            if ($this->port !== null && $this->port !== 0)
		{
			$iauthority .= ':' . $this->port;
		}
		return $iauthority;
	}

	return null;
}