本文へスキップ
ドキュメント

クラス・関数リファレンス

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.