Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99839691
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, Jan 26, 21:53
Size
568 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 21:53 (2 d)
Engine
blob
Format
Raw Data
Handle
23832760
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
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getDiffContent
(
'+'
);
}
protected
function
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_TEXT_MAP
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
HeraldAdapter
::
VALUE_TEXT
;
}
}
Event Timeline
Log In to Comment