public function __construct($uri)
public function __construct($uri)
Parameters
| string|PhutilURI | $uri | $uri |
Return
| this | //Implicit.// |
public function isSelf()
public function isSelf()
Check if the URI points to Phorge itself.
Return
| bool |
public function isAnchor()
public function isAnchor()
Check whenever an URI is just a simple fragment without path and protocol.
Return
| bool |
public function isStartingWithSlash()
public function isStartingWithSlash()
Check whenever an URI starts with a slash (no protocol, etc.)
Return
| bool |
public function __toString()
public function __toString()
A sane default.
Return
| wild |
private function isStartingWithChar($char)
private function isStartingWithChar($char)
Check whenever the URI starts with the provided character.
Parameters
| string | $char | String that MUST have length of 1. |
Return
| bool |