@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorSystemRemoveLogWorkflow
4 extends PhabricatorSystemRemoveWorkflow {
5
6 protected function didConstruct() {
7 $this
8 ->setName('log')
9 ->setSynopsis(pht('Show a log of permanently destroyed objects.'))
10 ->setExamples('**log**')
11 ->setArguments(array());
12 }
13
14 public function execute(PhutilArgumentParser $args) {
15 $console = PhutilConsole::getConsole();
16
17 $table = new PhabricatorSystemDestructionLog();
18 foreach (new LiskMigrationIterator($table) as $row) {
19 $console->writeOut(
20 "[%s]\t%s %s\t%s\t%s\n",
21 phabricator_datetime($row->getEpoch(), $this->getViewer()),
22 ($row->getRootLogID() ? ' ' : '*'),
23 $row->getObjectClass(),
24 $row->getObjectPHID(),
25 $row->getObjectMonogram());
26 }
27
28 return 0;
29 }
30
31}