Differential D9859 Diff 23678 src/applications/conpherence/controller/ConpherenceNotificationPanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceNotificationPanelController.php
| <?php | <?php | ||||
| /** | |||||
| * @group conpherence | |||||
| */ | |||||
| final class ConpherenceNotificationPanelController | final class ConpherenceNotificationPanelController | ||||
| extends ConpherenceController { | extends ConpherenceController { | ||||
| public function processRequest() { | public function processRequest() { | ||||
| $request = $this->getRequest(); | $request = $this->getRequest(); | ||||
| $user = $request->getUser(); | $user = $request->getUser(); | ||||
| $conpherences = array(); | $conpherences = array(); | ||||
| $unread_status = ConpherenceParticipationStatus::BEHIND; | $unread_status = ConpherenceParticipationStatus::BEHIND; | ||||
| $participant_data = id(new ConpherenceParticipantQuery()) | $participant_data = id(new ConpherenceParticipantQuery()) | ||||
| ->withParticipantPHIDs(array($user->getPHID())) | ->withParticipantPHIDs(array($user->getPHID())) | ||||
| ->setLimit(5) | ->setLimit(5) | ||||
| ▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
| $json = array( | $json = array( | ||||
| 'content' => $content, | 'content' => $content, | ||||
| 'number' => (int)$unread_count, | 'number' => (int)$unread_count, | ||||
| ); | ); | ||||
| return id(new AphrontAjaxResponse())->setContent($json); | return id(new AphrontAjaxResponse())->setContent($json); | ||||
| } | } | ||||
| } | } | ||||