Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99057936
NuanceManagementUpdateWorkflow.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
Sat, Jan 18, 19:08
Size
688 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 19:08 (2 d)
Engine
blob
Format
Raw Data
Handle
23698775
Attached To
rPH Phabricator
NuanceManagementUpdateWorkflow.php
View Options
<?php
final
class
NuanceManagementUpdateWorkflow
extends
NuanceManagementWorkflow
{
protected
function
didConstruct
()
{
$this
->
setName
(
'update'
)
->
setExamples
(
'**update** --item __item__ [__options__]'
)
->
setSynopsis
(
pht
(
'Update or route an item.'
))
->
setArguments
(
array
(
array
(
'name'
=>
'item'
,
'param'
=>
'item'
,
'help'
=>
pht
(
'Choose which item to route.'
),
),
));
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$item
=
$this
->
loadItem
(
$args
,
'item'
);
PhabricatorWorker
::
setRunAllTasksInProcess
(
true
);
$item
->
scheduleUpdate
();
return
0
;
}
}
Event Timeline
Log In to Comment