blob: b50c172c84141c2119d25fb9bd7376c9d863c33b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
class SkinBase implements LangAccess {
protected static LangData $ld;
public static function __constructStatic(): void {
self::$ld = LangData::getInstance();
}
public function lang(...$args): string {
return htmlescape($this->langRaw(...$args));
}
public function langRaw(string $key, ...$args) {
$val = self::$ld[$key];
return empty($args) ? $val : sprintf($val, ...$args);
}
}
SkinBase::__constructStatic();
|