# Url

class Url

## Methods

static string
getDomain(bool $strict = true)

Retrieve server name from $_SERVER

static string
getPort()

Retrieve server port from $_SERVER

static string
getScheme()

Retrieve url scheme from from $_SERVER

static string
getPath($callBack = '')

Path is string after domain without filename

static string
getSelf($callBack = '')

Path with file

static string
getQuery(string $callBack = '')

$_GET is QueryString

static string
getReferer()

No description

static bool
isValid(string $url)

No description

static bool
isSelf(string $url)

Sometimes we must check inputed url is our selfUrl (same domain) or not to protected our System from RCE etc, via URL.

static
isAdmin()

No description

static
isOpac()

No description

static
inXml()

No description

static string|null
parse(string $url)

Parsing URL with style!

__construct(string $url)

No description

__call($method, $arguments)

No description

## Details

###
at line 43
`static string getDomain(bool $strict = true)`

Retrieve server name from $_SERVER

#### Parameters

bool | $strict |

#### Return Value

string |

###
at line 61
`static string getPort()`

Retrieve server port from $_SERVER

#### Return Value

string |

###
at line 72
`static string getScheme()`

Retrieve url scheme from from $_SERVER

#### Return Value

string |

###
at line 84
`static string getPath($callBack = '')`

Path is string after domain without filename

#### Parameters

| $callBack |

#### Return Value

string |

###
at line 95
`static string getSelf($callBack = '')`

Path with file

#### Parameters

| $callBack |

#### Return Value

string |

###
at line 107
`static string getQuery(string $callBack = '')`

$_GET is QueryString

#### Parameters

string | $callBack |

#### Return Value

string |

###
at line 116
`static string getReferer()`

No description

#### Return Value

string |

###
at line 125
`static bool isValid(string $url)`

No description

#### Parameters

string | $url |

#### Return Value

bool |

###
at line 138
`static bool isSelf(string $url)`

Sometimes we must check inputed url is our selfUrl (same domain) or not to protected our System from RCE etc, via URL.

#### Parameters

string | $url |

#### Return Value

bool |

###
at line 143
`static isAdmin()`

No description

###
at line 148
`static isOpac()`

No description

###
at line 153
`static inXml()`

No description

###
at line 164
`static string|null parse(string $url)`

Parsing URL with style!

#### Parameters

string | $url |

#### Return Value

string|null |

###
at line 179
`__construct(string $url)`

No description

#### Parameters

string | $url |

###
at line 184
`__call($method, $arguments)`

No description

#### Parameters

| $method |
| $arguments |