Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/diffusion/engine/DiffusionCommitTimelineEngine.php
12241 views
1
<?php
2
3
final class DiffusionCommitTimelineEngine
4
extends PhabricatorTimelineEngine {
5
6
protected function newTimelineView() {
7
$xactions = $this->getTransactions();
8
9
$path_ids = array();
10
foreach ($xactions as $xaction) {
11
if ($xaction->hasComment()) {
12
$path_id = $xaction->getComment()->getPathID();
13
if ($path_id) {
14
$path_ids[] = $path_id;
15
}
16
}
17
}
18
19
$path_map = array();
20
if ($path_ids) {
21
$path_map = id(new DiffusionPathQuery())
22
->withPathIDs($path_ids)
23
->execute();
24
$path_map = ipull($path_map, 'path', 'id');
25
}
26
27
return id(new PhabricatorAuditTransactionView())
28
->setPathMap($path_map);
29
}
30
}
31
32