Dodo
DOm DOcument implementation
|
URL. More...
Public Member Functions | |
string | __construct (string $url='') |
bool | isAbsolute () |
XXX: not sure if this is the precise definition of absolute. | |
bool | isAuthorityBased () |
bool | isHierarchical () |
string | toString () |
string | resolve ( $relative) |
Static Public Member Functions | |
static | percent_encode (string $s) |
Return a percentEncoded version of s. | |
static | merge (URL $basepath, URL $refpath) |
static | remove_dot_segments ( $path) |
Public Attributes | |
string null | $scheme = null |
string null | $host = null |
string null | $port = null |
string null | $username = null |
string null | $password = null |
string null | $path = null |
string null | $query = null |
string null | $fragment = null |
$hostname = null | |
$pathname = null | |
$search = null | |
$searchParams = null | |
$hash = null | |
URL.
TODO: This is currently NOT implementing https://url.spec.whatwg.org/#api, but it could, and probably should.
TODO: Should probably lean heavily on existing PHP URL-parsing functions? -forbid-undeclared-magic-properties
string Wikimedia\Dodo\URL::__construct | ( | string | $url = '' | ) |
string | $url |
bool Wikimedia\Dodo\URL::isAbsolute | ( | ) |
XXX: not sure if this is the precise definition of absolute.
bool Wikimedia\Dodo\URL::isAuthorityBased | ( | ) |
bool Wikimedia\Dodo\URL::isHierarchical | ( | ) |
URL | $basepath | |
URL | $refpath |
|
static |
Return a percentEncoded version of s.
S should be a single-character string XXX: needs to do utf-8 encoding?
string | $s |
|
static |
string | null | $path |
string Wikimedia\Dodo\URL::resolve | ( | $relative | ) |
string | $relative |
string Wikimedia\Dodo\URL::toString | ( | ) |
string null Wikimedia\Dodo\URL::$fragment = null |
string null Wikimedia\Dodo\URL::$host = null |
string null Wikimedia\Dodo\URL::$password = null |
string null Wikimedia\Dodo\URL::$path = null |
string null Wikimedia\Dodo\URL::$port = null |
string null Wikimedia\Dodo\URL::$query = null |
string null Wikimedia\Dodo\URL::$scheme = null |
string null Wikimedia\Dodo\URL::$username = null |