Changeset View
Changeset View
Standalone View
Standalone View
src/applications/chatlog/conduit/ConduitAPI_chatlog_record_Method.php
| <?php | <?php | ||||
| /** | final class ConduitAPI_chatlog_record_Method extends ConduitAPI_chatlog_Method { | ||||
| * @group conduit | |||||
| */ | |||||
| final class ConduitAPI_chatlog_record_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 'Record chatter.'; | return 'Record chatter.'; | ||||
| } | } | ||||
| public function defineParamTypes() { | public function defineParamTypes() { | ||||
| return array( | return array( | ||||
| 'logs' => 'required list<dict>', | 'logs' => 'required list<dict>', | ||||
| ); | ); | ||||
| } | } | ||||
| public function defineReturnType() { | public function defineReturnType() { | ||||
| return 'list<id>'; | return 'list<id>'; | ||||
| } | } | ||||
| public function defineErrorTypes() { | public function defineErrorTypes() { | ||||
| return array( | return array(); | ||||
| ); | |||||
| } | } | ||||
| protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
| $logs = $request->getValue('logs'); | $logs = $request->getValue('logs'); | ||||
| if (!is_array($logs)) { | if (!is_array($logs)) { | ||||
| $logs = array(); | $logs = array(); | ||||
| } | } | ||||
| Show All 40 Lines | |||||