Differential D10585 Diff 25583 src/applications/conpherence/conduit/ConpherenceQueryThreadConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/conduit/ConpherenceQueryThreadConduitAPIMethod.php
| Show All 14 Lines | return pht( | ||||
| 'updated conpherences for the logged in user.'); | 'updated conpherences for the logged in user.'); | ||||
| } | } | ||||
| public function defineParamTypes() { | public function defineParamTypes() { | ||||
| return array( | return array( | ||||
| 'ids' => 'optional array<int>', | 'ids' => 'optional array<int>', | ||||
| 'phids' => 'optional array<phids>', | 'phids' => 'optional array<phids>', | ||||
| 'limit' => 'optional int', | 'limit' => 'optional int', | ||||
| 'offset' => 'optional int' | 'offset' => 'optional int', | ||||
| ); | ); | ||||
| } | } | ||||
| public function defineReturnType() { | public function defineReturnType() { | ||||
| return 'nonempty dict'; | return 'nonempty dict'; | ||||
| } | } | ||||
| public function defineErrorTypes() { | public function defineErrorTypes() { | ||||
| ▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | foreach ($conpherences as $conpherence) { | ||||
| $id = $conpherence->getID(); | $id = $conpherence->getID(); | ||||
| $data[$id] = array( | $data[$id] = array( | ||||
| 'conpherenceID' => $id, | 'conpherenceID' => $id, | ||||
| 'conpherencePHID' => $conpherence->getPHID(), | 'conpherencePHID' => $conpherence->getPHID(), | ||||
| 'conpherenceTitle' => $conpherence->getTitle(), | 'conpherenceTitle' => $conpherence->getTitle(), | ||||
| 'messageCount' => $conpherence->getMessageCount(), | 'messageCount' => $conpherence->getMessageCount(), | ||||
| 'recentParticipantPHIDs' => $conpherence->getRecentParticipantPHIDs(), | 'recentParticipantPHIDs' => $conpherence->getRecentParticipantPHIDs(), | ||||
| 'filePHIDs' => $conpherence->getFilePHIDs(), | 'filePHIDs' => $conpherence->getFilePHIDs(), | ||||
| 'conpherenceURI' => $this->getConpherenceURI($conpherence)); | 'conpherenceURI' => $this->getConpherenceURI($conpherence), | ||||
| ); | |||||
| } | } | ||||
| return $data; | return $data; | ||||
| } | } | ||||
| } | } | ||||