WpOrg\Requests
Iri::get_iauthority
Get the complete iauthority
Method of the class: Iri{}
No Hooks.
Returns
String|null.
Usage
// protected - for code of main (parent) or child class $result = $this->get_iauthority();
Iri::get_iauthority() Iri::get iauthority code WP 7.0
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;
}