Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92481397
PhabricatorSystemRemoveLogWorkflow.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
Wed, Nov 20, 16:30
Size
816 B
Mime Type
text/x-php
Expires
Fri, Nov 22, 16:30 (2 d)
Engine
blob
Format
Raw Data
Handle
22444860
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment