클래스·함수 명세

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.