2020-08-06 16:18:12 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Contains a class for controlling the list of available positions on an object.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
2020-08-07 00:12:49 +02:00
|
|
|
declare(strict_types = 1);
|
2020-08-06 16:18:12 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class containing available positions on an object.
|
|
|
|
*/
|
2020-08-29 17:21:18 +02:00
|
|
|
final class MDObjectPositionsSet extends MDValueSet {
|
2020-08-06 16:18:12 +02:00
|
|
|
|
2024-06-11 22:15:59 +02:00
|
|
|
public const POSITIONS = [
|
2024-12-09 14:57:45 +01:00
|
|
|
'front_front',
|
|
|
|
'left', 'top_left', 'top', 'top_right', 'right', 'bottom_right', 'bottom', 'bottom_left', 'center',
|
|
|
|
'rear_side',
|
|
|
|
'rear_left', 'rear_top_left', 'rear_top', 'rear_top_right', 'rear_right', 'rear_bottom_right', 'rear_bottom', 'rear_bottom_left', 'rear_center',
|
|
|
|
'underside', 'topside',
|
|
|
|
'edge', 'inside', 'other',
|
2020-08-06 16:18:12 +02:00
|
|
|
];
|
|
|
|
|
2020-08-24 20:14:41 +02: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::POSITIONS, "position_set", "position_set");
|
|
|
|
|
|
|
|
}
|
2020-08-06 16:18:12 +02:00
|
|
|
}
|