Diviner

Class PhutilGitURI

Definedsrc/parser/PhutilGitURI.php:19
GroupCore Utilities

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).

Tasks

Unspecified

Methods

public this __construct($uri)

parameterswild$uri
returnthis
This method is not documented.

public __toString()

returnwild
This method is not documented.

public getDomain()

returnwild
This method is not documented.

public getPath()

returnwild
This method is not documented.

public getUser()

returnwild
This method is not documented.

private static parseURI($uri)

parameterswild$uri
returnwild
This method is not documented.

public setDomain($domain)

parameterswild$domain
returnwild
This method is not documented.

public setPath($path)

parameterswild$path
returnwild
This method is not documented.

public setUser($user)

parameterswild$user
returnwild
This method is not documented.