class Translation

Translation

Translation 은 다른 tag 들과 달리 instance 가 필요 없음

사용법

front 에 다국어 설정

  • XeFrontend::translation([]);
  • XeFrontend::output('translation');

Traits

Properties

protected $attributes from AttributeTrait
protected string $minified from MinifyTrait
protected bool $useMinified from MinifyTrait
protected null|string $target from TargetTrait
static protected array $keys

Methods

$this
attr(string $name, string $value)

태그에 속성을 지정한다.

$this
min(string $minified, bool|false $useMinified = false)

min

$this
target(string $target)

set target

string
__toString()

to string

static string
output()

output

static void
addKey(string $key)

add key

static void
addKeys(array $keys)

add keys

static void
init()

init

__construct(array|string $keys)

create instance

Details

in AttributeTrait at line 39
$this attr(string $name, string $value)

태그에 속성을 지정한다.

Parameters

string $name name
string $value value

Return Value

$this

in MinifyTrait at line 45
$this min(string $minified, bool|false $useMinified = false)

min

Parameters

string $minified minified
bool|false $useMinified use minified

Return Value

$this

in TargetTrait at line 37
$this target(string $target)

set target

Parameters

string $target target

Return Value

$this

in EmptyStringTrait at line 30
string __toString()

to string

Return Value

string

at line 53
static string output()

output

Return Value

string

at line 80
static private void addKey(string $key)

add key

Parameters

string $key key

Return Value

void

at line 92
static private void addKeys(array $keys)

add keys

Parameters

array $keys keys

Return Value

void

at line 102
static void init()

init

Return Value

void

at line 111
__construct(array|string $keys)

create instance

Parameters

array|string $keys key