Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

URL

Danh sách các phương thức công khai của lớp Zittme\Framework\URL. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/URL.php

Phương thức công khai

  • 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