跳到主要內容
文件

類別・函式規格

Lang

Zittme\Framework\Lang 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。

原始碼:common/framework/Lang.php

公開方法

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