Select the types of activity you want to include in your feed.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
···2828 const PRIORITY_LOW = 25;
2929 const PRIORITY_WISH = 0;
30303131+ /**
3232+ * Get the priorities and their full descriptions.
3333+ *
3434+ * @return map Priorities to descriptions.
3535+ */
3136 public static function getTaskPriorityMap() {
3237 return array(
3338 self::PRIORITY_UNBREAK_NOW => 'Unbreak Now!',
···3944 );
4045 }
41464747+ /**
4848+ * Get the priorities and their related short (one-word) descriptions.
4949+ *
5050+ * @return map Priorities to brief descriptions.
5151+ */
4252 public static function getTaskBriefPriorityMap() {
4353 return array(
4454 self::PRIORITY_UNBREAK_NOW => 'Unbreak!',
···5060 );
5161 }
52625353-6363+ /**
6464+ * Get the priorities and some bits for bitwise fun.
6565+ *
6666+ * @return map Priorities to bits.
6767+ */
5468 public static function getLoadMap() {
5569 return array(
5670 self::PRIORITY_UNBREAK_NOW => 16,
···6276 );
6377 }
64787979+ /**
8080+ * Get the lowest defined priority.
8181+ *
8282+ * @return int The value of the lowest priority constant.
8383+ */
8484+ public static function getLowestPriority() {
8585+ return self::PRIORITY_WISH;
8686+ }
8787+8888+ /**
8989+ * Get the highest defined priority.
9090+ *
9191+ * @return int The value of the highest priority constant.
9292+ */
9393+ public static function getHighestPriority() {
9494+ return self::PRIORITY_UNBREAK_NOW;
9595+ }
9696+9797+ /**
9898+ * Retrieve the full name of the priority level provided.
9999+ *
100100+ * @param int A priority level.
101101+ * @return string The priority name if the level is a valid one,
102102+ * or `???` if it is not.
103103+ */
65104 public static function getTaskPriorityName($priority) {
66105 return idx(self::getTaskPriorityMap(), $priority, '???');
67106 }