Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894308
PonderQuestionStatus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
732 B
Referenced Files
None
Subscribers
None
PonderQuestionStatus.php
View Options
<?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
=>
PHUITagView
::
COLOR_BLACK
,
)
;
return
idx
(
$map
,
$status
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:42 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128089
Default Alt Text
PonderQuestionStatus.php (732 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment