[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/maniphest/export/ -> ManiphestExcelFormat.php (source)

   1  <?php
   2  
   3  abstract class ManiphestExcelFormat {
   4  
   5    final public static function loadAllFormats() {
   6      $classes = id(new PhutilSymbolLoader())
   7        ->setAncestorClass(__CLASS__)
   8        ->setConcreteOnly(true)
   9        ->selectAndLoadSymbols();
  10  
  11      $objects = array();
  12      foreach ($classes as $class) {
  13        $objects[$class['name']] = newv($class['name'], array());
  14      }
  15  
  16      $objects = msort($objects, 'getOrder');
  17  
  18      return $objects;
  19    }
  20  
  21    public abstract function getName();
  22    public abstract function getFileName();
  23  
  24    public function getOrder() {
  25      return 0;
  26    }
  27  
  28    protected function computeExcelDate($epoch) {
  29      $seconds_per_day = (60 * 60 * 24);
  30      $offset = ($seconds_per_day * 25569);
  31  
  32      return ($epoch + $offset) / $seconds_per_day;
  33    }
  34  
  35    /**
  36     * @phutil-external-symbol class PHPExcel
  37     */
  38    public abstract function buildWorkbook(
  39      PHPExcel $workbook,
  40      array $tasks,
  41      array $handles,
  42      PhabricatorUser $user);
  43  
  44  }


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