Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93542315
ManiphestBulkEditController.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 29, 14:28
Size
787 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 14:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22660291
Attached To
rPH Phabricator
ManiphestBulkEditController.php
View Options
<?php
final
class
ManiphestBulkEditController
extends
ManiphestController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$this
->
requireApplicationCapability
(
ManiphestBulkEditCapability
::
CAPABILITY
);
$bulk_engine
=
id
(
new
ManiphestTaskBulkEngine
())
->
setViewer
(
$viewer
)
->
setController
(
$this
)
->
addContextParameter
(
'board'
);
$board_id
=
$request
->
getInt
(
'board'
);
if
(
$board_id
)
{
$project
=
id
(
new
PhabricatorProjectQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$board_id
))
->
executeOne
();
if
(!
$project
)
{
return
new
Aphront404Response
();
}
$bulk_engine
->
setWorkboard
(
$project
);
}
return
$bulk_engine
->
buildResponse
();
}
}
Event Timeline
Log In to Comment