Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/conduit/UserQueryConduitAPIMethod.php
<?php | <?php | ||||
final class UserQueryConduitAPIMethod extends UserConduitAPIMethod { | final class UserQueryConduitAPIMethod extends UserConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'user.query'; | return 'user.query'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Query users.'); | return pht('Query users.'); | ||||
} | } | ||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_FROZEN; | |||||
} | |||||
public function getMethodStatusDescription() { | |||||
return pht( | |||||
'This method is frozen and will eventually be deprecated. New code '. | |||||
'should use "user.search" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'usernames' => 'optional list<string>', | 'usernames' => 'optional list<string>', | ||||
'emails' => 'optional list<string>', | 'emails' => 'optional list<string>', | ||||
'realnames' => 'optional list<string>', | 'realnames' => 'optional list<string>', | ||||
'phids' => 'optional list<phid>', | 'phids' => 'optional list<phid>', | ||||
'ids' => 'optional list<uint>', | 'ids' => 'optional list<uint>', | ||||
'offset' => 'optional int', | 'offset' => 'optional int', | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |