Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116330691
ManiphestSubscribeController.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, Jun 6, 05:56
Size
861 B
Mime Type
text/x-php
Expires
Sun, Jun 8, 05:56 (2 d)
Engine
blob
Format
Raw Data
Handle
26547793
Attached To
rPH Phabricator
ManiphestSubscribeController.php
View Options
<?php
final
class
ManiphestSubscribeController
extends
ManiphestController
{
private
$id
;
private
$action
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
$this
->
action
=
$data
[
'action'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$task
=
id
(
new
ManiphestTask
())->
load
(
$this
->
id
);
if
(!
$task
)
{
return
new
Aphront404Response
();
}
switch
(
$this
->
action
)
{
case
'add'
:
ManiphestTransactionEditor
::
addCC
(
$task
,
$user
);
break
;
case
'rem'
:
ManiphestTransactionEditor
::
removeCC
(
$task
,
$user
);
break
;
default
:
return
new
Aphront400Response
();
}
return
id
(
new
AphrontRedirectResponse
())->
setURI
(
'/T'
.
$task
->
getID
());
}
}
Event Timeline
Log In to Comment