Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F454644
AlmanacPropertiesDestructionEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
712 B
Referenced Files
None
Subscribers
None
AlmanacPropertiesDestructionEngineExtension.php
View Options
<?php
final
class
AlmanacPropertiesDestructionEngineExtension
extends
PhabricatorDestructionEngineExtension
{
const
EXTENSIONKEY
=
'almanac.properties'
;
public
function
getExtensionName
()
{
return
pht
(
'Almanac Properties'
);
}
public
function
canDestroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
return
(
$object
instanceof
AlmanacPropertyInterface
);
}
public
function
destroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
$table
=
new
AlmanacProperty
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn_w
,
'DELETE FROM %T WHERE objectPHID = %s'
,
$table
->
getTableName
(),
$object
->
getPHID
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 5:31 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69614
Default Alt Text
AlmanacPropertiesDestructionEngineExtension.php (712 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment