public static function getTaskPriorityMap()
public static function getTaskPriorityMap()
Get the priorities and their full descriptions.
Return
map | Priorities to descriptions. |
public static function getTaskPriorityKeywordsMap()
public static function getTaskPriorityKeywordsMap()
Get the priorities and their command keywords.
Return
map | Priorities to lists of command keywords. |
public static function getKeywordForTaskPriority($priority)
public static function getKeywordForTaskPriority($priority)
Get the canonical keyword for a given priority constant.
Parameters
$priority |
Return
string|null | Keyword, or `null` if no keyword is configured. |
public static function getTaskPriorityAliasMap()
public static function getTaskPriorityAliasMap()
Get a map of supported alternate names for each priority.
Keys are aliases, like "wish" and "wishlist". Values are canonical priority keywords, like "wishlist".
Return
map<string, string> | Map of aliases to canonical priority keywords. |
public static function getShortNameMap()
public static function getShortNameMap()
Get the priorities and their related short (one-word) descriptions.
Return
map | Priorities to short descriptions. |
public static function getColorMap()
public static function getColorMap()
Get a map from priority constants to their colors.
Return
map<int, string> | Priorities to colors. |
public static function getDefaultPriority()
public static function getDefaultPriority()
Return the default priority for this instance of Phabricator.
Return
int | The value of the default priority constant. |
public static function getTaskPriorityName($priority)
public static function getTaskPriorityName($priority)
Retrieve the full name of the priority level provided.
Parameters
int | $priority | A priority level. |
Return
string | The priority name if the level is a valid one. |
public static function getTaskPriorityColor($priority)
public static function getTaskPriorityColor($priority)
Retrieve the color of the priority level given
Parameters
int | $priority | A priority level. |
Return
string | The color of the priority if the level is valid, or black if it is not. |
public static function getTaskPriorityIcon($priority)
public static function getTaskPriorityIcon($priority)
Parameters
$priority |
Return
wild |
public static function getTaskPriorityFromKeyword($keyword)
public static function getTaskPriorityFromKeyword($keyword)
Parameters
$keyword |
Return
wild |
public static function isDisabledPriority($priority)
public static function isDisabledPriority($priority)
Parameters
$priority |
Return
wild |
public static function getConfig()
public static function getConfig()
Return
wild |
private static function isValidPriorityKeyword($keyword)
private static function isValidPriorityKeyword($keyword)
Parameters
$keyword |
Return
wild |
public static function validateConfiguration($config)
public static function validateConfiguration($config)
Parameters
$config |
Return
wild |