Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/maniphest/xaction/ManiphestTaskMergedFromTransaction.php
12256 views
1
<?php
2
3
final class ManiphestTaskMergedFromTransaction
4
extends ManiphestTaskTransactionType {
5
6
const TRANSACTIONTYPE = 'mergedfrom';
7
8
public function generateOldValue($object) {
9
return null;
10
}
11
12
public function getActionName() {
13
return pht('Merged');
14
}
15
16
public function getTitle() {
17
$new = $this->getNewValue();
18
19
return pht(
20
'%s merged %s task(s): %s.',
21
$this->renderAuthor(),
22
phutil_count($new),
23
$this->renderHandleList($new));
24
}
25
26
public function getTitleForFeed() {
27
$new = $this->getNewValue();
28
29
return pht(
30
'%s merged %s task(s) %s into %s.',
31
$this->renderAuthor(),
32
phutil_count($new),
33
$this->renderHandleList($new),
34
$this->renderObject());
35
}
36
37
public function getIcon() {
38
return 'fa-compress';
39
}
40
41
public function getColor() {
42
return 'orange';
43
}
44
45
}
46
47