Page MenuHomePhorge

PonderQuestionStatus.php
No OneTemporary

Size
716 B
Referenced Files
None
Subscribers
None

PonderQuestionStatus.php

<?php
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, pht('Unknown'));
}
public static function getQuestionStatusTagColor($status) {
$map = array(
self::STATUS_CLOSED => PHUITagView::COLOR_BLACK,
);
return idx($map, $status);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 2:12 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224246
Default Alt Text
PonderQuestionStatus.php (716 B)

Event Timeline