Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97987619
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
Wed, Jan 8, 07:54
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 10, 07:54 (2 d)
Engine
blob
Format
Raw Data
Handle
23462664
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