Path: blob/master/src/applications/conpherence/controller/ConpherenceParticipantController.php
12262 views
<?php12final class ConpherenceParticipantController extends ConpherenceController {34public function shouldAllowPublic() {5return true;6}78public function handleRequest(AphrontRequest $request) {9$viewer = $request->getViewer();1011$conpherence_id = $request->getURIData('id');12if (!$conpherence_id) {13return new Aphront404Response();14}1516$conpherence = id(new ConpherenceThreadQuery())17->setViewer($viewer)18->withIDs(array($conpherence_id))19->needParticipants(true)20->executeOne();2122if (!$conpherence) {23return new Aphront404Response();24}2526$uri = $this->getApplicationURI('update/'.$conpherence->getID().'/');27$content = id(new ConpherenceParticipantView())28->setUser($this->getViewer())29->setConpherence($conpherence)30->setUpdateURI($uri);3132$content = array('widgets' => $content);3334return id(new AphrontAjaxResponse())->setContent($content);35}3637}383940