Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99508462
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
Sat, Jan 25, 02:17
Size
836 B
Mime Type
text/x-php
Expires
Mon, Jan 27, 02:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23808521
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