35 lines
779 B
PHP
35 lines
779 B
PHP
|
<?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 {
|
||
|
|
||
|
const FORMS = [
|
||
|
'',
|
||
|
'cube',
|
||
|
'cuboid',
|
||
|
'sphere',
|
||
|
'cone',
|
||
|
'cylinder',
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* 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");
|
||
|
|
||
|
}
|
||
|
}
|