Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92653572
NuanceTrashCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 10:22
Size
611 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 10:22 (2 d)
Engine
blob
Format
Raw Data
Handle
22479341
Attached To
rPH Phabricator
NuanceTrashCommand.php
View Options
<?php
final
class
NuanceTrashCommand
extends
NuanceCommandImplementation
{
const
COMMANDKEY
=
'trash'
;
public
function
getCommandName
()
{
return
pht
(
'Throw in Trash'
);
}
public
function
canApplyToItem
(
NuanceItem
$item
)
{
$type
=
$item
->
getImplementation
();
return
(
$type
instanceof
NuanceFormItemType
);
}
public
function
canApplyImmediately
(
NuanceItem
$item
,
NuanceItemCommand
$command
)
{
return
true
;
}
protected
function
executeCommand
(
NuanceItem
$item
,
NuanceItemCommand
$command
)
{
$this
->
newStatusTransaction
(
NuanceItem
::
STATUS_CLOSED
);
}
}
Event Timeline
Log In to Comment