Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F977423
PhabricatorSystemRemoveLogWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
816 B
Referenced Files
None
Subscribers
None
PhabricatorSystemRemoveLogWorkflow.php
View Options
<?php
final
class
PhabricatorSystemRemoveLogWorkflow
extends
PhabricatorSystemRemoveWorkflow
{
public
function
didConstruct
()
{
$this
->
setName
(
'log'
)
->
setSynopsis
(
pht
(
'Show a log of permanently destroyed objects.'
))
->
setExamples
(
'**log**'
)
->
setArguments
(
array
());
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
();
$table
=
new
PhabricatorSystemDestructionLog
();
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$row
)
{
$console
->
writeOut
(
"[%s]
\t
%s %s
\t
%s
\t
%s
\n
"
,
phabricator_datetime
(
$row
->
getEpoch
(),
$this
->
getViewer
()),
(
$row
->
getRootLogID
()
?
' '
:
'*'
),
$row
->
getObjectClass
(),
$row
->
getObjectPHID
(),
$row
->
getObjectMonogram
());
}
return
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 10:22 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
232299
Default Alt Text
PhabricatorSystemRemoveLogWorkflow.php (816 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment