Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1083816
ReleephCommitMessageFieldSpecification.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ReleephCommitMessageFieldSpecification.php
View Options
<?php
final
class
ReleephCommitMessageFieldSpecification
extends
ReleephFieldSpecification
{
public
function
getFieldKey
()
{
return
'commit:apply'
;
}
public
function
getName
()
{
return
'__only_for_commit_message!'
;
}
public
function
shouldAppearInPropertyView
()
{
return
false
;
}
public
function
shouldAppearOnCommitMessage
()
{
return
true
;
}
public
function
renderLabelForCommitMessage
()
{
return
$this
->
renderCommonLabel
();
}
public
function
renderValueForCommitMessage
()
{
return
$this
->
renderCommonValue
(
DifferentialReleephRequestFieldSpecification
::
ACTION_PICKS
);
}
public
function
shouldAppearOnRevertMessage
()
{
return
true
;
}
public
function
renderLabelForRevertMessage
()
{
return
$this
->
renderCommonLabel
();
}
public
function
renderValueForRevertMessage
()
{
return
$this
->
renderCommonValue
(
DifferentialReleephRequestFieldSpecification
::
ACTION_REVERTS
);
}
private
function
renderCommonLabel
()
{
return
id
(
new
DifferentialReleephRequestFieldSpecification
())
->
renderLabelForCommitMessage
();
}
private
function
renderCommonValue
(
$action
)
{
$rq
=
'RQ'
.
$this
->
getReleephRequest
()->
getID
();
return
"{$action} {$rq}"
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 11:06 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
266087
Default Alt Text
ReleephCommitMessageFieldSpecification.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment