Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F508825
HeraldDifferentialDiffAdapter.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
HeraldDifferentialDiffAdapter.php
View Options
<?php
final
class
HeraldDifferentialDiffAdapter
extends
HeraldDifferentialAdapter
{
public
function
getAdapterApplicationClass
()
{
return
PhabricatorDifferentialApplication
::
class
;
}
protected
function
initializeNewAdapter
()
{
$this
->
setDiff
(
new
DifferentialDiff
());
}
public
function
isSingleEventAdapter
()
{
return
true
;
}
protected
function
loadChangesets
()
{
return
$this
->
loadChangesetsWithHunks
();
}
protected
function
loadChangesetsWithHunks
()
{
return
$this
->
getDiff
()->
getChangesets
();
}
public
function
getObject
()
{
return
$this
->
getDiff
();
}
public
function
getAdapterContentType
()
{
return
'differential.diff'
;
}
public
function
getAdapterContentName
()
{
return
pht
(
'Differential Diffs'
);
}
public
function
getAdapterContentDescription
()
{
return
pht
(
"React to new diffs being uploaded, before writes occur.
\n
"
.
"These rules can reject diffs before they are written to permanent "
.
"storage, to prevent users from accidentally uploading private keys or "
.
"other sensitive information."
);
}
public
function
supportsRuleType
(
$rule_type
)
{
switch
(
$rule_type
)
{
case
HeraldRuleTypeConfig
::
RULE_TYPE_GLOBAL
:
return
true
;
case
HeraldRuleTypeConfig
::
RULE_TYPE_OBJECT
:
case
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
:
default
:
return
false
;
}
}
public
function
getHeraldName
()
{
return
pht
(
'New Diff'
);
}
public
function
supportsWebhooks
()
{
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 8:48 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
106869
Default Alt Text
HeraldDifferentialDiffAdapter.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment