Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phame / constants / PhameConstants.php
blob39f35f71cee60d6a369d5cb5c0f250bb15ddc9d0
1 <?php
3 final class PhameConstants extends Phobject {
5 const VISIBILITY_DRAFT = 0;
6 const VISIBILITY_PUBLISHED = 1;
7 const VISIBILITY_ARCHIVED = 2;
9 public static function getPhamePostStatusMap() {
10 return array(
11 self::VISIBILITY_PUBLISHED => pht('Published'),
12 self::VISIBILITY_DRAFT => pht('Draft'),
13 self::VISIBILITY_ARCHIVED => pht('Archived'),
17 public static function getPhamePostStatusName($status) {
18 $map = array(
19 self::VISIBILITY_PUBLISHED => pht('Published'),
20 self::VISIBILITY_DRAFT => pht('Draft'),
21 self::VISIBILITY_ARCHIVED => pht('Archived'),
23 return idx($map, $status, pht('Unknown'));