class \mpf\translators\Redis

class \mpf\translators\Redis

Inheritance \mpf\base\Object
Implements -
Uses \mpf\interfaces\TranslatorInterface
Childs -
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/translators/Redis.php

-no description found-

Attributes
private static \mpf\translators\Redis[] $instance

-no description found-

public string $translationsKey = "translations:{language}"

Key in redis for translations. Value must be a set.

protected mixed $translations = []

-no description found-

Methods

public static \mpf\translators\TranslatorInterface get (array $config = [])

  • $config

    -no description found-

-no description found-

public mixed setLanguage (mixed $language)

  • $language

    -no description found-

-no description found-

public mixed t (mixed $text, mixed $class = null)

  • $text

    -no description found-

  • $class

    -no description found-

-no description found-