Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96191630
DifferentialJIRAIssuesCommitMessageField.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
Mon, Dec 23, 15:00
Size
930 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 15:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23141109
Attached To
rPH Phabricator
DifferentialJIRAIssuesCommitMessageField.php
View Options
<?php
final
class
DifferentialJIRAIssuesCommitMessageField
extends
DifferentialCommitMessageCustomField
{
const
FIELDKEY
=
'jira.issues'
;
public
function
getFieldName
()
{
return
pht
(
'JIRA Issues'
);
}
public
function
getFieldAliases
()
{
return
array
(
'JIRA'
,
'JIRA Issue'
,
);
}
public
function
getCustomFieldKey
()
{
return
'phabricator:jira-issues'
;
}
public
function
parseFieldValue
(
$value
)
{
return
preg_split
(
'/[
\s
,]+/'
,
$value
,
$limit
=
-
1
,
PREG_SPLIT_NO_EMPTY
);
}
protected
function
readFieldValueFromCustomFieldStorage
(
$value
)
{
return
$this
->
readJSONFieldValueFromCustomFieldStorage
(
$value
,
array
());
}
public
function
readFieldValueFromConduit
(
$value
)
{
return
$this
->
readStringListFieldValueFromConduit
(
$value
);
}
public
function
renderFieldValue
(
$value
)
{
if
(!
$value
)
{
return
null
;
}
return
implode
(
', '
,
$value
);
}
}
Event Timeline
Log In to Comment