Page MenuHomestyx hydra

PonderQuestionStatus.php
No OneTemporary

PonderQuestionStatus.php

<?php
/**
* @group ponder
*/
final class PonderQuestionStatus extends PonderConstants {
const STATUS_OPEN = 0;
const STATUS_CLOSED = 1;
public static function getQuestionStatusMap() {
return array(
self::STATUS_OPEN => pht('Open'),
self::STATUS_CLOSED => pht('Closed'),
);
}
public static function getQuestionStatusFullName($status) {
$map = array(
self::STATUS_OPEN => pht('Open'),
self::STATUS_CLOSED => pht('Closed by author'),
);
return idx($map, $status, '???');
}
public static function getQuestionStatusTagColor($status) {
$map = array(
self::STATUS_CLOSED => PhabricatorTagView::COLOR_BLACK,
);
return idx($map, $status);
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Feb 25, 12:27 AM (17 m, 13 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
851708
Default Alt Text
PonderQuestionStatus.php (739 B)

Event Timeline