Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/servicetype/AlmanacServiceType.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | abstract class AlmanacServiceType extends Phobject { | ||||
| /** | /** | ||||
| * List all available service type implementations. | * List all available service type implementations. | ||||
| * | * | ||||
| * @return map<string, object> Dictionary of available service types. | * @return map<string, object> Dictionary of available service types. | ||||
| */ | */ | ||||
| public static function getAllServiceTypes() { | public static function getAllServiceTypes() { | ||||
| return id(new PhutilClassMapQuery()) | return id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
| ->setUniqueMethod('getServiceTypeShortName') | |||||
| ->setSortMethod('getServiceTypeName') | ->setSortMethod('getServiceTypeName') | ||||
| ->execute(); | ->execute(); | ||||
| } | } | ||||
| } | } | ||||