Changeset View
Changeset View
Standalone View
Standalone View
src/applications/chatlog/conduit/ConduitAPI_chatlog_query_Method.php
| <?php | <?php | ||||
| /** | final class ConduitAPI_chatlog_query_Method extends ConduitAPI_chatlog_Method { | ||||
| * @group conduit | |||||
| */ | |||||
| final class ConduitAPI_chatlog_query_Method | |||||
| extends ConduitAPI_chatlog_Method { | |||||
| public function getMethodStatus() { | public function getMethodStatus() { | ||||
| return self::METHOD_STATUS_UNSTABLE; | return self::METHOD_STATUS_UNSTABLE; | ||||
| } | } | ||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return 'Retrieve chatter.'; | return 'Retrieve chatter.'; | ||||
| } | } | ||||
| Show All 9 Lines | public function defineReturnType() { | ||||
| return 'nonempty list<dict>'; | return 'nonempty list<dict>'; | ||||
| } | } | ||||
| public function defineErrorTypes() { | public function defineErrorTypes() { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
| $query = new PhabricatorChatLogQuery(); | $query = new PhabricatorChatLogQuery(); | ||||
| $channel_ids = $request->getValue('channelIDs'); | $channel_ids = $request->getValue('channelIDs'); | ||||
| if ($channel_ids) { | if ($channel_ids) { | ||||
| $query->withChannelIDs($channel_ids); | $query->withChannelIDs($channel_ids); | ||||
| } | } | ||||
| $limit = $request->getValue('limit'); | $limit = $request->getValue('limit'); | ||||
| Show All 23 Lines | |||||