URL
Zittme\Framework\URL 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。
原始碼:common/framework/URL.php
公開方法
static function getCurrentURL(array $changes = [])- Get the current URL.
static function getCurrentDomain(bool $preserve_port = false)- Get the current domain.
static function getCurrentDomainURL(string $path = '/')- Get a URL using the current domain and the path.
static function getCanonicalURL(string $url)- Convert a URL to its canonical format.
static function getDomainFromURL(string $url)- Get the domain from a URL.
static function isInternalURL(string $url)- Check if a URL is internal to this site.
static function modifyURL(string $url, array $changes = [])- Modify a URL.
static function fromServerPath(string $path)- Convert a server-side path to a URL.
static function toServerPath(string $url)- Convert a URL to a server-side path.
static function encodeIdna(string $url)- Encode UTF-8 domain into IDNA (punycode)
static function decodeIdna(string $url)- Convert IDNA (punycode) domain into UTF-8