Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/export/ManiphestExcelDefaultFormat.php
| Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | foreach ($tasks as $task) { | ||||
| $task_owner, | $task_owner, | ||||
| idx($status_map, $task->getStatus(), '?'), | idx($status_map, $task->getStatus(), '?'), | ||||
| idx($pri_map, $task->getPriority(), '?'), | idx($pri_map, $task->getPriority(), '?'), | ||||
| $this->computeExcelDate($task->getDateCreated()), | $this->computeExcelDate($task->getDateCreated()), | ||||
| $this->computeExcelDate($task->getDateModified()), | $this->computeExcelDate($task->getDateModified()), | ||||
| $task->getTitle(), | $task->getTitle(), | ||||
| $projects, | $projects, | ||||
| PhabricatorEnv::getProductionURI('/T'.$task->getID()), | PhabricatorEnv::getProductionURI('/T'.$task->getID()), | ||||
| phutil_utf8_shorten($task->getDescription(), 512), | id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumBytes(512) | |||||
| ->truncateString($task->getDescription()), | |||||
| ); | ); | ||||
| } | } | ||||
| foreach ($rows as $row => $cols) { | foreach ($rows as $row => $cols) { | ||||
| foreach ($cols as $col => $spec) { | foreach ($cols as $col => $spec) { | ||||
| $cell_name = $this->col($col).($row + 1); | $cell_name = $this->col($col).($row + 1); | ||||
| $cell = $sheet | $cell = $sheet | ||||
| ->setCellValue($cell_name, $spec, $return_cell = true); | ->setCellValue($cell_name, $spec, $return_cell = true); | ||||
| Show All 23 Lines | |||||