Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/nuance/xaction/NuanceItemCommandTransaction.php
12256 views
1
<?php
2
3
final class NuanceItemCommandTransaction
4
extends NuanceItemTransactionType {
5
6
const TRANSACTIONTYPE = 'nuance.item.command';
7
8
public function generateOldValue($object) {
9
return null;
10
}
11
12
public function getTitle() {
13
$spec = $this->getNewValue();
14
$command_key = idx($spec, 'command', '???');
15
16
return pht(
17
'%s applied a "%s" command to this item.',
18
$this->renderAuthor(),
19
$command_key);
20
}
21
22
}
23
24