Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2369041
ReleephRequestStatus.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ReleephRequestStatus.php
View Options
<?php
final
class
ReleephRequestStatus
{
const
STATUS_REQUESTED
=
1
;
const
STATUS_NEEDS_PICK
=
2
;
// aka approved
const
STATUS_REJECTED
=
3
;
const
STATUS_ABANDONED
=
4
;
const
STATUS_PICKED
=
5
;
const
STATUS_REVERTED
=
6
;
const
STATUS_NEEDS_REVERT
=
7
;
// aka revert requested
public
static
function
getStatusDescriptionFor
(
$status
)
{
$descriptions
=
array
(
self
::
STATUS_REQUESTED
=>
pht
(
'Requested'
),
self
::
STATUS_REJECTED
=>
pht
(
'Rejected'
),
self
::
STATUS_ABANDONED
=>
pht
(
'Abandoned'
),
self
::
STATUS_PICKED
=>
pht
(
'Pulled'
),
self
::
STATUS_REVERTED
=>
pht
(
'Reverted'
),
self
::
STATUS_NEEDS_PICK
=>
pht
(
'Needs Pull'
),
self
::
STATUS_NEEDS_REVERT
=>
pht
(
'Needs Revert'
),
);
return
idx
(
$descriptions
,
$status
,
'??'
);
}
public
static
function
getStatusClassSuffixFor
(
$status
)
{
$description
=
self
::
getStatusDescriptionFor
(
$status
);
$class
=
str_replace
(
' '
,
'-'
,
strtolower
(
$description
));
return
$class
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 6:47 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
441043
Default Alt Text
ReleephRequestStatus.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment