3 final class NuanceTrashCommand
4 extends NuanceCommandImplementation
{
6 const COMMANDKEY
= 'trash';
8 public function getCommandName() {
9 return pht('Throw in Trash');
12 public function canApplyToItem(NuanceItem
$item) {
13 $type = $item->getImplementation();
14 return ($type instanceof NuanceFormItemType
);
17 public function canApplyImmediately(
19 NuanceItemCommand
$command) {
23 protected function executeCommand(
25 NuanceItemCommand
$command) {
26 $this->newStatusTransaction(NuanceItem
::STATUS_CLOSED
);