Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96155058
DifferentialSubscribersCommitMessageField.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, 06:16
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 25, 06:16 (2 d)
Engine
blob
Format
Raw Data
Handle
23135460
Attached To
rPH Phabricator
DifferentialSubscribersCommitMessageField.php
View Options
<?php
final
class
DifferentialSubscribersCommitMessageField
extends
DifferentialCommitMessageField
{
const
FIELDKEY
=
'ccPHIDs'
;
public
function
getFieldName
()
{
return
pht
(
'Subscribers'
);
}
public
function
getFieldOrder
()
{
return
6000
;
}
public
function
getFieldAliases
()
{
return
array
(
'CC'
,
'CCs'
,
'Subscriber'
,
);
}
public
function
parseFieldValue
(
$value
)
{
return
$this
->
parseObjectList
(
$value
,
array
(
PhabricatorPeopleUserPHIDType
::
TYPECONST
,
PhabricatorProjectProjectPHIDType
::
TYPECONST
,
PhabricatorOwnersPackagePHIDType
::
TYPECONST
,
));
}
public
function
readFieldValueFromObject
(
DifferentialRevision
$revision
)
{
if
(!
$revision
->
getPHID
())
{
return
array
();
}
return
PhabricatorSubscribersQuery
::
loadSubscribersForPHID
(
$revision
->
getPHID
());
}
public
function
readFieldValueFromConduit
(
$value
)
{
return
$this
->
readStringListFieldValueFromConduit
(
$value
);
}
public
function
renderFieldValue
(
$value
)
{
return
$this
->
renderHandleList
(
$value
);
}
}
Event Timeline
Log In to Comment