Constant summary
Property summary
Modifier and Type | Property |
---|---|
protected | scheme |
protected | userInfo |
protected | authority |
protected | path |
protected | query |
protected | fragment |
Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( string scheme = null , Authority authority = null , Path path = null , Query query = null , string fragment = null ) |
public string | getScheme ( ) |
public | hasScheme ( ) |
public Authority | getAuthority ( ) |
public Path | getPath ( ) |
public Query | getQuery ( ) |
public string | getFragment ( ) |
public Url | chScheme ( string scheme = null ) |
public Url | chAuthority ( mixed authority ) |
public Url | chUserInfo ( mixed userInfo ) |
public Url | chHost ( mixed host = null ) |
public Url | chPort ( mixed port = null ) |
public Url | chPath ( mixed path = null ) |
public Url | chQuery ( mixed query ) |
public Url | chFragment ( string fragment ) |
public | ext ( unknown relativeUrl ) |
public Url | extR ( unknown pathExt = null , unknown queryExt = null , mixed fragment = null ) |
public | pathExt ( unknown pathPartExts ) |
public | pathExtEnc ( unknown pathExts ) |
public | queryExt ( unknown query ) |
public Url | reducedPath ( number num = 1 ) |
public Url | subPath ( number start , string num = null ) |
public Url | toRelativeUrl ( ) |
public static | createRelativeUrl ( unknown path = null , unknown query = null , unknown fragment = null ) |
public static Url|null | build ( unknown expression ) |
public static Url | create ( mixed expression , bool lenient = false ) |
public string | __toString ( ) |
public | isRelative ( ) |
public string | toIdnaAsciiString ( ) |
public bool | equals ( unknown url ) |
Constants in detail
-
SCHEME_SEPARATOR
const SCHEME_SEPARATOR
-
AUTHORITY_PREFIX
const AUTHORITY_PREFIX
-
PATH_PREFIX
const PATH_PREFIX
-
QUERY_PREFIX
const QUERY_PREFIX
-
FRAGMENT_PREFIX
const FRAGMENT_PREFIX
Properties in detail
-
scheme
protected scheme
-
userInfo
protected userInfo
-
authority
protected authority
-
path
protected path
-
query
protected query
-
fragment
protected fragment
Methods in detail
-
__construct
-
getScheme
string public getScheme ( ) -
hasScheme
public hasScheme ( ) -
getAuthority
Authority public getAuthority ( )return
-
getPath
Path public getPath ( )return
-
getQuery
Query public getQuery ( )return
-
getFragment
string public getFragment ( )return
string -
chScheme
-
chAuthority
-
chUserInfo
-
chHost
-
chPort
-
chPath
-
chQuery
-
chFragment
-
ext
public ext ( unknown relativeUrl ) -
extR
-
pathExt
public pathExt ( unknown pathPartExts ) -
pathExtEnc
public pathExtEnc ( unknown pathExts ) -
queryExt
public queryExt ( unknown query ) -
reducedPath
-
subPath
-
toRelativeUrl
Url public toRelativeUrl ( )return
-
createRelativeUrl
public static createRelativeUrl ( unknown path = null , unknown query = null , unknown fragment = null ) -
build
Url|null public static build ( unknown expression )param
$expressionreturn
n2n\util\uri\Url|null -
create
-
__toString
string public __toString ( )return
string -
isRelative
public isRelative ( ) -
toIdnaAsciiString
string public toIdnaAsciiString ( )Converts host name to IDNA ASCII form.return
string -
equals
bool public equals ( unknown url )param
$urlreturn
bool
return