Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104571966
HeraldDryRunAdapter.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
Mon, Mar 10, 14:03
Size
836 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 14:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24814119
Attached To
rPH Phabricator
HeraldDryRunAdapter.php
View Options
<?php
final
class
HeraldDryRunAdapter
extends
HeraldAdapter
{
public
function
getPHID
()
{
return
0
;
}
public
function
isEnabled
()
{
return
false
;
}
public
function
getAdapterContentName
()
{
return
null
;
}
public
function
getHeraldName
()
{
return
'Dry Run'
;
}
public
function
getHeraldField
(
$field
)
{
return
null
;
}
public
function
getFields
()
{
return
array
();
}
public
function
getActions
(
$rule_type
)
{
return
array
();
}
public
function
applyHeraldEffects
(
array
$effects
)
{
assert_instances_of
(
$effects
,
'HeraldEffect'
);
$results
=
array
();
foreach
(
$effects
as
$effect
)
{
$results
[]
=
new
HeraldApplyTranscript
(
$effect
,
false
,
pht
(
'This was a dry run, so no actions were actually taken.'
));
}
return
$results
;
}
}
Event Timeline
Log In to Comment