[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/ponder/constants/ -> PonderQuestionStatus.php (source)

   1  <?php
   2  
   3  final class PonderQuestionStatus extends PonderConstants {
   4  
   5    const STATUS_OPEN     = 0;
   6    const STATUS_CLOSED   = 1;
   7  
   8    public static function getQuestionStatusMap() {
   9      return array(
  10        self::STATUS_OPEN     => pht('Open'),
  11        self::STATUS_CLOSED   => pht('Closed'),
  12      );
  13    }
  14  
  15    public static function getQuestionStatusFullName($status) {
  16      $map = array(
  17        self::STATUS_OPEN     => pht('Open'),
  18        self::STATUS_CLOSED   => pht('Closed by author'),
  19      );
  20      return idx($map, $status, '???');
  21    }
  22  
  23    public static function getQuestionStatusTagColor($status) {
  24      $map = array(
  25        self::STATUS_CLOSED => PHUITagView::COLOR_BLACK,
  26      );
  27  
  28      return idx($map, $status);
  29    }
  30  
  31  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1