Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82482753
ReleephRequestorFieldSpecification.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, Sep 11, 16:32
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Sep 13, 16:32 (2 d)
Engine
blob
Format
Raw Data
Handle
20701481
Attached To
rPH Phabricator
ReleephRequestorFieldSpecification.php
View Options
<?php
final
class
ReleephRequestorFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'requestor'
;
}
public
function
getName
()
{
return
pht
(
'Requestor'
);
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
$phids
=
array
();
$phid
=
$this
->
getReleephRequest
()->
getRequestUserPHID
();
if
(
$phid
)
{
$phids
[]
=
$phid
;
}
return
$phids
;
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
public
function
shouldAppearOnCommitMessage
()
{
return
true
;
}
public
function
shouldAppearOnRevertMessage
()
{
return
true
;
}
public
function
renderLabelForCommitMessage
()
{
return
pht
(
'Requested By'
);
}
public
function
renderValueForCommitMessage
()
{
$phid
=
$this
->
getReleephRequest
()->
getRequestUserPHID
();
$handle
=
id
(
new
PhabricatorHandleQuery
())
->
setViewer
(
$this
->
getUser
())
->
withPHIDs
(
array
(
$phid
))
->
executeOne
();
return
$handle
->
getName
();
}
}
Event Timeline
Log In to Comment