[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/system/management/ -> PhabricatorSystemRemoveLogWorkflow.php (source)

   1  <?php
   2  
   3  final class PhabricatorSystemRemoveLogWorkflow
   4    extends PhabricatorSystemRemoveWorkflow {
   5  
   6    public 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  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1