Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92651699
ReleephSeverityFieldSpecification.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 09:55
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 09:55 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
22477852
Attached To
rPH Phabricator
ReleephSeverityFieldSpecification.php
View Options
<?php
final
class
ReleephSeverityFieldSpecification
extends
ReleephLevelFieldSpecification
{
const
HOTFIX
=
'HOTFIX'
;
const
RELEASE
=
'RELEASE'
;
public
function
getFieldKey
()
{
return
'severity'
;
}
public
function
getName
()
{
return
'Severity'
;
}
public
function
getStorageKey
()
{
return
'releeph:severity'
;
}
public
function
getLevels
()
{
return
array
(
self
::
HOTFIX
,
self
::
RELEASE
,
);
}
public
function
getDefaultLevel
()
{
return
self
::
RELEASE
;
}
public
function
getNameForLevel
(
$level
)
{
static
$names
=
array
(
self
::
HOTFIX
=>
'HOTFIX'
,
self
::
RELEASE
=>
'RELEASE'
,
);
return
idx
(
$names
,
$level
,
$level
);
}
public
function
getDescriptionForLevel
(
$level
)
{
static
$descriptions
;
if
(
$descriptions
===
null
)
{
$descriptions
=
array
(
self
::
HOTFIX
=>
pht
(
'Needs merging and fixing right now.'
),
self
::
RELEASE
=>
pht
(
'Required for the currently rolling release.'
),
);
}
return
idx
(
$descriptions
,
$level
);
}
}
Event Timeline
Log In to Comment