Ir al contenido
Docs

Referencia de clases y funciones

i18n

Lista de métodos públicos de la clase Zittme\Framework\i18n. Este documento se generó automáticamente a partir del código fuente del núcleo de Zittme.

Fuente: common/framework/i18n.php

Métodos públicos

  • 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.