Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94031390
HeraldTranscriptDestructionEngineExtension.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
Tue, Dec 3, 09:22
Size
579 B
Mime Type
text/x-php
Expires
Thu, Dec 5, 09:22 (2 d)
Engine
blob
Format
Raw Data
Handle
22712039
Attached To
rPH Phabricator
HeraldTranscriptDestructionEngineExtension.php
View Options
<?php
final
class
HeraldTranscriptDestructionEngineExtension
extends
PhabricatorDestructionEngineExtension
{
const
EXTENSIONKEY
=
'herald.transcripts'
;
public
function
getExtensionName
()
{
return
pht
(
'Herald Transcripts'
);
}
public
function
destroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
$object_phid
=
$object
->
getPHID
();
$transcripts
=
id
(
new
HeraldTranscript
())->
loadAllWhere
(
'objectPHID = %s'
,
$object_phid
);
foreach
(
$transcripts
as
$transcript
)
{
$engine
->
destroyObject
(
$transcript
);
}
}
}
Event Timeline
Log In to Comment