Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119686016
ConpherenceParticipantController.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, Jun 28, 13:56
Size
957 B
Mime Type
text/x-php
Expires
Mon, Jun 30, 13:56 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
27047115
Attached To
rPH Phabricator
ConpherenceParticipantController.php
View Options
<?php
final
class
ConpherenceParticipantController
extends
ConpherenceController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$conpherence_id
=
$request
->
getURIData
(
'id'
);
if
(!
$conpherence_id
)
{
return
new
Aphront404Response
();
}
$conpherence
=
id
(
new
ConpherenceThreadQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$conpherence_id
))
->
needParticipants
(
true
)
->
executeOne
();
if
(!
$conpherence
)
{
return
new
Aphront404Response
();
}
$uri
=
$this
->
getApplicationURI
(
'update/'
.
$conpherence
->
getID
().
'/'
);
$content
=
id
(
new
ConpherenceParticipantView
())
->
setUser
(
$this
->
getViewer
())
->
setConpherence
(
$conpherence
)
->
setUpdateURI
(
$uri
);
$content
=
array
(
'widgets'
=>
$content
);
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
$content
);
}
}
Event Timeline
Log In to Comment