Page MenuHomeGitPull.it
Diviner Tech Docs PhutilURIHelper

final class PhutilURIHelper
Phorge Technical Documentation ()

A simple wrapper for PhutilURI, to be aware of the relative/absolute context, and other minor things.

Methods

public function __construct($uri)

This method is not documented.
Parameters
string|PhutilURI$uri$uri
Return
this//Implicit.//

public function isSelf()

Check if the URI points to Phorge itself.

Return
bool

public function isAnchor()

Check whenever an URI is just a simple fragment without path and protocol.

Return
bool

public function isStartingWithSlash()

Check whenever an URI starts with a slash (no protocol, etc.)

Return
bool

public function __toString()

A sane default.

Return
wild

private function isStartingWithChar($char)

Check whenever the URI starts with the provided character.

Parameters
string$charString that MUST have length of 1.
Return
bool