Page MenuHomePhorge

final class PhutilGitURI
Arcanist Technical Documentation ()

Parser for the alternate URI scheme used by SCP and Git, which look like this:

user@host:path

(Git calls these URIs "scp-style" in its documentation, but most users and developers are likely to run into them in the context of Git and I couldn't find an official name or specification, so I'm going with "GitURI".)

Note that these URIs can not be transformed into normal URIs because the path is interpreted as relative on the remote, rather than absolute (as with normal URIs).

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public function __construct($uri)

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

private static function parseURI($uri)

This method is not documented.
Parameters
$uri
Return
wild

public function __toString()

This method is not documented.
Return
wild

public function setDomain($domain)

This method is not documented.
Parameters
$domain
Return
wild

public function getDomain()

This method is not documented.
Return
wild

public function setPath($path)

This method is not documented.
Parameters
$path
Return
wild

public function getPath()

This method is not documented.
Return
wild

public function setUser($user)

This method is not documented.
Parameters
$user
Return
wild

public function getUser()

This method is not documented.
Return
wild