Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894946
AlmanacPropertiesDestructionEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
Jan 19 2025, 20:44 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128561
Default Alt Text
AlmanacPropertiesDestructionEngineExtension.php (712 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment