Actually implement getTledName in MDNodaRepository
This commit is contained in:
@@ -846,7 +846,12 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
|||||||
* @return array<string, string>
|
* @return array<string, string>
|
||||||
*/
|
*/
|
||||||
public static function getUnsortedList(MDTlLoader $tlLoader):array {
|
public static function getUnsortedList(MDTlLoader $tlLoader):array {
|
||||||
return MDValueSet::getTlUnsortedList($tlLoader, self::caseNames(), "attendance_status_set", "attendance_status_set");
|
|
||||||
|
$output = [];
|
||||||
|
foreach (self::cases() as $case) {
|
||||||
|
$output[$case->name] = $case->toFullName();
|
||||||
|
}
|
||||||
|
return $output;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -858,7 +863,10 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
|||||||
* @return array<string, string>
|
* @return array<string, string>
|
||||||
*/
|
*/
|
||||||
public static function getSortedList(MDTlLoader $tlLoader):array {
|
public static function getSortedList(MDTlLoader $tlLoader):array {
|
||||||
return MDValueSet::getTlSortedList($tlLoader, self::caseNames(), "attendance_status_set", "attendance_status_set");
|
|
||||||
|
$out = self::getUnsortedList($tlLoader);
|
||||||
|
asort($out);
|
||||||
|
return $out;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -871,7 +879,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
|||||||
*/
|
*/
|
||||||
public function getTledName(MDTlLoader $tlLoader):string {
|
public function getTledName(MDTlLoader $tlLoader):string {
|
||||||
|
|
||||||
return $tlLoader->tl("attendance_status_set", "attendance_status_set", $this->name);
|
return $this->toFullName();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user