2022-12-14 01:22:19 +01:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Contains a class for listing the possible forms for objects.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Contains a class for listing the possible forms for objects.
|
|
|
|
*/
|
|
|
|
final class MDObjectFormSet extends MDValueSet {
|
|
|
|
|
2024-06-11 22:15:59 +02:00
|
|
|
public const FORMS = [
|
2022-12-14 01:22:19 +01:00
|
|
|
'',
|
|
|
|
'cube',
|
|
|
|
'cuboid',
|
|
|
|
'sphere',
|
|
|
|
'cone',
|
|
|
|
'cylinder',
|
|
|
|
];
|
|
|
|
|
2022-12-14 16:11:49 +01:00
|
|
|
/**
|
|
|
|
* Gets an unsorted list of the entries in a translated version.
|
|
|
|
*
|
|
|
|
* @param MDTlLoader $tlLoader Translation loader.
|
|
|
|
*
|
|
|
|
* @return array<string>
|
|
|
|
*/
|
|
|
|
public static function getUnsortedList(MDTlLoader $tlLoader):array {
|
|
|
|
return parent::getTlUnsortedList($tlLoader, self::FORMS, "object_form_set", "object_form_set");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-12-14 01:22:19 +01:00
|
|
|
/**
|
|
|
|
* Gets a sorted list of the entries in a translated version.
|
|
|
|
*
|
|
|
|
* @param MDTlLoader $tlLoader Translation loader.
|
|
|
|
*
|
|
|
|
* @return array<string>
|
|
|
|
*/
|
|
|
|
public static function getSortedList(MDTlLoader $tlLoader):array {
|
|
|
|
return parent::getTlSortedList($tlLoader, self::FORMS, "object_form_set", "object_form_set");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|