Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/servicetype/AlmanacServiceType.php
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | abstract class AlmanacServiceType extends Phobject { | ||||
| public function getDefaultPropertyMap() { | public function getDefaultPropertyMap() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| public function getFieldSpecifications() { | public function getFieldSpecifications() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| public function getBindingFieldSpecifications(AlmanacBinding $binding) { | |||||
| return array(); | |||||
| } | |||||
| /** | /** | ||||
| * 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('getServiceTypeConstant') | ->setUniqueMethod('getServiceTypeConstant') | ||||
| ->setSortMethod('getServiceTypeName') | ->setSortMethod('getServiceTypeName') | ||||
| ->execute(); | ->execute(); | ||||
| } | } | ||||
| } | } | ||||