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

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

i18n

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

Nguồn: common/framework/i18n.php

Phương thức công khai

  • static function listCountries(int $sort_by = self::SORT_NAME_ENGLISH)
  • Get the list of all countries.
  • static function getCallingCodeByCountryCode(string $code)
  • Get the calling code from a country code (either ISO-3166-1 alpha2 or alpha3).
  • static function getCountryCodeByCallingCode(string $code, $type = 3)
  • Get the country code (either ISO-3166-1 alpha2 or alpha3) from a calling code.
  • static function formatPhoneNumber(string $phone_number, string $phone_country, bool $pretty = true)
  • Format a phone number with country code.