Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99298340
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
Thu, Jan 23, 05:26
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 25, 05:26 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
23770962
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
getFieldAliases
()
{
return
array
(
'Auditor'
,
);
}
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