Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92087016
DiffusionPreCommitContentDiffContentAddedHeraldField.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
Sun, Nov 17, 05:58
Size
566 B
Mime Type
text/x-php
Expires
Tue, Nov 19, 05:58 (2 d)
Engine
blob
Format
Raw Data
Handle
22374375
Attached To
rPH Phabricator
DiffusionPreCommitContentDiffContentAddedHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentDiffContentAddedHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.commit.diff.new'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Added diff content'
);
}
public
function
getFieldGroupKey
()
{
return
DiffusionChangeHeraldFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getDiffContent
(
'+'
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_TEXT_MAP
;
}
}
Event Timeline
Log In to Comment