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