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

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

Lang

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

Nguồn: common/framework/Lang.php

Phương thức công khai

  • static function getInstance(string $language)
  • This method returns the cached instance of a language.
  • function langType()
  • Return language type.
  • function loadPlugin(string $name)
  • Load translations from a plugin (module, addon).
  • function loadDirectory(string $dir, ?string $plugin_name = null)
  • Load translations from a directory.
  • static function getSupportedList()
  • Get the list of supported languages.
  • function get(string $key)
  • Generic getter.
  • function set(string $key, $value)
  • Generic setter.
  • function getFromDefaultLang(string $key)
  • Fallback method for getting the default translation.
  • function __get(string $key)
  • Magic method for translations without arguments.
  • function __set(string $key, $value)
  • Magic method for setting a new custom translation.
  • function __isset(string $key)
  • Magic method for checking whether a translation exists.
  • function __unset(string $key)
  • Magic method for unsetting a translation.
  • function __call(string $key, $args = array()
  • Magic method for translations with arguments.