conpherenceID = $conpherence_id; return $this; } public function getConpherenceID() { return $this->conpherenceID; } public function willProcessRequest(array $data) { $this->setConpherenceID(idx($data, 'id')); } public function processRequest() { $request = $this->getRequest(); $user = $request->getUser(); $title = pht('Conpherence'); $conpherence_id = $this->getConpherenceID(); $current_selection_epoch = null; if ($conpherence_id) { $conpherence = id(new ConpherenceThreadQuery()) ->setViewer($user) ->withIDs(array($conpherence_id)) ->executeOne(); if (!$conpherence) { return new Aphront404Response(); } if ($conpherence->getTitle()) { $title = $conpherence->getTitle(); } $this->setSelectedConpherencePHID($conpherence->getPHID()); $participant = $conpherence->getParticipant($user->getPHID()); $current_selection_epoch = $participant->getDateTouched(); } $this->loadStartingConpherences($current_selection_epoch); $nav = $this->buildSideNavView(); $main_pane = id(new ConpherenceLayoutView()) ->setBaseURI($this->getApplicationURI()) ->setSelectedConpherencePHID($this->getSelectedConpherencePHID()); $nav->appendChild( array( $main_pane, )); return $this->buildApplicationPage( $nav, array( 'title' => $title, 'device' => true, )); } }