Ir al contenido
Docs

Referencia de clases y funciones

Lang

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

Fuente: common/framework/Lang.php

Métodos públicos

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