Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102213290
DifferentialAuditorsCommitMessageField.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
Tue, Feb 18, 08:13
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 20, 08:13 (2 d)
Engine
blob
Format
Raw Data
Handle
24308020
Attached To
rPH Phabricator
DifferentialAuditorsCommitMessageField.php
View Options
<?php
final
class
DifferentialAuditorsCommitMessageField
extends
DifferentialCommitMessageCustomField
{
const
FIELDKEY
=
'phabricator:auditors'
;
public
function
getFieldName
()
{
return
pht
(
'Auditors'
);
}
public
function
parseFieldValue
(
$value
)
{
return
$this
->
parseObjectList
(
$value
,
array
(
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
PhabricatorOwnersPackagePHIDType
::
TYPECONST
,
));
}
public
function
getCustomFieldKey
()
{
return
'phabricator:auditors'
;
}
public
function
isFieldEditable
()
{
return
true
;
}
public
function
isTemplateField
()
{
return
false
;
}
public
function
readFieldValueFromConduit
(
$value
)
{
return
$this
->
readStringListFieldValueFromConduit
(
$value
);
}
public
function
renderFieldValue
(
$value
)
{
return
$this
->
renderHandleList
(
$value
);
}
protected
function
readFieldValueFromCustomFieldStorage
(
$value
)
{
return
$this
->
readJSONFieldValueFromCustomFieldStorage
(
$value
,
array
());
}
}
Event Timeline
Log In to Comment