WpOrg\Requests

Iri::get_iauthority()protectedWP 1.0

Get the complete iauthority

Method of the class: Iri{}

No Hooks.

Return

String|null.

Usage

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

Iri::get_iauthority() code WP 6.6.2

protected function get_iauthority() {
	if ($this->iuserinfo === null && $this->ihost === null && $this->port === null) {
		return null;
	}

	$iauthority = '';
	if ($this->iuserinfo !== null) {
		$iauthority .= $this->iuserinfo . '@';
	}
	if ($this->ihost !== null) {
		$iauthority .= $this->ihost;
	}
	if ($this->port !== null) {
		$iauthority .= ':' . $this->port;
	}
	return $iauthority;
}