Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110222034
ReleephDiffMessageFieldSpecification.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, Apr 25, 06:10
Size
814 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 06:10 (1 d, 12 h)
Engine
blob
Format
Raw Data
Handle
25788935
Attached To
rPH Phabricator
ReleephDiffMessageFieldSpecification.php
View Options
<?php
final
class
ReleephDiffMessageFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'commit:message'
;
}
public
function
getName
()
{
return
pht
(
'Message'
);
}
public
function
getStyleForPropertyView
()
{
return
'block'
;
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phabricator-remarkup'
,
),
$this
->
getMarkupEngineOutput
());
}
public
function
shouldMarkup
()
{
return
true
;
}
public
function
getMarkupText
(
$field
)
{
$commit_data
=
$this
->
getReleephRequest
()
->
loadPhabricatorRepositoryCommitData
();
if
(
$commit_data
)
{
return
$commit_data
->
getCommitMessage
();
}
else
{
return
''
;
}
}
}
Event Timeline
Log In to Comment