Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F824762
NuanceTrashCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, May 29, 11:49 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170713
Default Alt Text
NuanceTrashCommand.php (611 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment