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() {
11 self
::VISIBILITY_PUBLISHED
=> pht('Published'),
12 self
::VISIBILITY_DRAFT
=> pht('Draft'),
13 self
::VISIBILITY_ARCHIVED
=> pht('Archived'),
17 public static function getPhamePostStatusName($status) {
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'));