mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-16 03:42:41 +01:00
31 lines
769 B
PHP
31 lines
769 B
PHP
|
<?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\t%s\t%s\n",
|
||
|
phabricator_datetime($row->getEpoch(), $this->getViewer()),
|
||
|
$row->getObjectClass(),
|
||
|
$row->getObjectPHID(),
|
||
|
$row->getObjectMonogram());
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
}
|