class ApiGroupIsMemberAction extends ApiBareAuthAction
{
- var $format = null;
var $user = null;
var $group = null;
$this->user = $this->getTargetUser(null);
$this->group = $this->getTargetGroup(null);
- $this->format = $this->arg('format');
return true;
}
class ApiGroupJoinAction extends ApiAuthAction
{
- var $format = null;
var $user = null;
var $group = null;
$this->user = $this->auth_user;
$this->group = $this->getTargetGroup($this->arg('id'));
- $this->format = $this->arg('format');
-
return true;
}
class ApiGroupLeaveAction extends ApiAuthAction
{
- var $format = null;
var $user = null;
var $group = null;
$this->user = $this->auth_user;
$this->group = $this->getTargetGroup($this->arg('id'));
- $this->format = $this->arg('format');
-
return true;
}
class ApiGroupListAction extends ApiBareAuthAction
{
- var $format = null;
var $user = null;
var $page = null;
var $count = null;
$this->since = $this->arg('since');
$this->user = $this->getTargetUser($id);
- $this->format = $this->arg('format');
$this->groups = $this->getGroups();
return true;
class ApiGroupListAllAction extends TwitterApiAction
{
- var $format = null;
var $page = null;
var $count = null;
var $max_id = null;
$this->since = $this->arg('since');
$this->user = $this->getTargetUser($id);
- $this->format = $this->arg('format');
$this->groups = $this->getGroups();
return true;
class ApiGroupMembershipAction extends TwitterApiAction
{
- var $format = null;
var $page = null;
var $count = null;
var $max_id = null;
$this->since_id = (int)$this->arg('since_id', 0);
$this->since = $this->arg('since');
- $this->format = $this->arg('format');
$this->group = $this->getTargetGroup($this->arg('id'));
$this->profiles = $this->getProfiles();
var $user = null;
var $status = null;
- var $format = null;
/**
* Take arguments for running
$this->notice_id = (int)$this->arg('id');
}
- $this->format = $this->arg('format');
$this->notice = Notice::staticGet((int)$this->notice_id);
return true;
var $notice_id = null;
var $notice = null;
- var $format = null;
/**
* Take arguments for running
$this->notice_id = (int)$this->arg('id');
}
- $this->format = $this->arg('format');
$this->notice = Notice::staticGet((int)$this->notice_id);
return true;
var $source = null;
var $status = null;
var $in_reply_to_status_id = null;
- var $format = null;
static $reserved_sources = array('web', 'omb', 'mail', 'xmpp', 'api');
$this->source = 'api';
}
- $this->format = $this->arg('format');
-
$this->in_reply_to_status_id
= intval($this->trimmed('in_reply_to_status_id'));
var $count = null;
var $user = null;
var $profiles = null;
- var $format = null;
var $tag = null;
var $lite = null;
var $ids_only = null;
$this->page = (int)$this->arg('page', 1);
$this->tag = $this->arg('tag');
- $this->format = $this->arg('format');
// Note: Twitter no longer supports 'lite'
$this->lite = $this->arg('lite');
var $user = null;
var $notices = null;
- var $format = null;
var $page = null;
var $count = null;
var $max_id = null;
$this->max_id = (int)$this->arg('max_id', 0);
$this->since_id = (int)$this->arg('since_id', 0);
$this->since = $this->arg('since');
- $this->format = $this->arg('format');
$this->user = $this->getTargetUser($this->arg('id'));
var $max_id = null;
var $since_id = null;
var $since = null;
- var $format = null;
/**
* Take arguments for running
$this->max_id = (int)$this->arg('max_id', 0);
$this->since_id = (int)$this->arg('since_id', 0);
$this->since = $this->arg('since');
- $this->format = $this->arg('format');
$this->user = $this->getTargetUser($this->arg('id'));
$this->group = $this->getTargetGroup($this->arg('id'));
- $this->format = $this->arg('format');
$this->notices = $this->getNotices();
return true;
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
- $this->clientError(_('No such user!'), 404, $this->arg('format'));
+ $this->clientError(_('No such user!'), 404, $this->format);
return;
}
$sitename, $this->user->nickname, $profile->getBestName()
);
- switch($this->arg('format')) {
+ switch($this->format) {
case 'xml':
$this->show_xml_timeline($this->notices);
break;
$link = common_root_url();
$subtitle = sprintf(_("%s updates from everyone!"), $sitename);
- switch($this->arg('format')) {
+ switch($this->format) {
case 'xml':
$this->show_xml_timeline($this->notices);
break;
$this->page = (int)$this->arg('page', 1);
$this->count = (int)$this->arg('count', 20);
$this->tag = $this->arg('tag');
- $this->format = $this->arg('format');
$this->notices = $this->getNotices();
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
- $this->clientError(_('No such user!'), 404, $this->arg('format'));
+ $this->clientError(_('No such user!'), 404, $this->format);
return;
}
$suplink = common_local_url('sup', null, null, $this->user->id);
header('X-SUP-ID: ' . $suplink);
- switch($this->arg('format')) {
+ switch($this->format) {
case 'xml':
$this->show_xml_timeline($this->notices);
break;
header('HTTP/1.1 401 Unauthorized');
$msg = 'Could not authenticate you.';
- if ($this->arg('format') == 'xml') {
+ if ($this->format == 'xml') {
header('Content-Type: application/xml; charset=utf-8');
$this->startXML();
$this->elementStart('hash');
$this->element('request', null, $_SERVER['REQUEST_URI']);
$this->elementEnd('hash');
$this->endXML();
- } elseif ($this->arg('format') == 'json') {
+ } elseif ($this->format == 'json') {
header('Content-Type: application/json; charset=utf-8');
$error_array = array('error' => $msg,
'request' => $_SERVER['REQUEST_URI']);