* @link http://status.net/
* @see ApiBareAuthAction
*/
-
class ApiListMembershipsAction extends ApiBareAuthAction
{
var $lists = array();
* @return boolean success flag
*
*/
-
function prepare($args)
{
parent::prepare($args);
$this->user = $this->getTargetUser($this->arg('user'));
if (empty($this->user)) {
+ // TRANS: Client error displayed trying to perform an action related to a non-existing user.
$this->clientError(_('No such user.'), 404, $this->format);
return;
}
*
* @return void
*/
-
function handle($args)
{
parent::handle($args);
break;
default:
$this->clientError(
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
400,
$this->format
*
* @return boolean is read only action?
*/
-
function isReadOnly($args)
{
return true;