Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100524658
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
Fri, Jan 31, 11:11
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 2, 11:11 (2 d)
Engine
blob
Format
Raw Data
Handle
23982560
Attached To
rPH Phabricator
ReleephRequestorFieldSpecification.php
View Options
<?php
final
class
ReleephRequestorFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'requestor'
;
}
public
function
getName
()
{
return
'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
'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