WpOrg\Requests
Iri::get_iri()
Get the complete IRI
Method of the class: Iri{}
No Hooks.
Return
String|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_iri();
Iri::get_iri() Iri::get iri code WP 6.6.2
protected function get_iri() { if (!$this->is_valid()) { return false; } $iri = ''; if ($this->scheme !== null) { $iri .= $this->scheme . ':'; } if (($iauthority = $this->get_iauthority()) !== null) { $iri .= '//' . $iauthority; } $iri .= $this->ipath; if ($this->iquery !== null) { $iri .= '?' . $this->iquery; } if ($this->ifragment !== null) { $iri .= '#' . $this->ifragment; } return $iri; }