class ApiDirectMessageAction extends ApiAuthAction
{
var $messages = null;
- var $page = null;
- var $count = null;
- var $max_id = null;
- var $since_id = null;
- var $since = null;
var $title = null;
var $subtitle = null;
var $link = null;
return;
}
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$server = common_root_url();
$taguribase = common_config('integration', 'taguri');
class ApiGroupListAction extends ApiBareAuthAction
{
- var $user = null;
- var $page = null;
- var $count = null;
- var $max_id = null;
- var $since_id = null;
- var $since = null;
var $groups = null;
/**
function prepare($args)
{
parent::prepare($args);
-
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
$this->user = $this->getTargetUser($id);
$this->groups = $this->getGroups();
class ApiGroupListAllAction extends ApiAction
{
- var $page = null;
- var $count = null;
- var $max_id = null;
- var $since_id = null;
- var $since = null;
var $groups = null;
/**
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$this->user = $this->getTargetUser($id);
$this->groups = $this->getGroups();
class ApiGroupMembershipAction extends ApiAction
{
- var $page = null;
- var $count = null;
- var $max_id = null;
- var $since_id = null;
- var $since = null;
var $group = null;
var $profiles = null;
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
- $this->group = $this->getTargetGroup($this->arg('id'));
-
+ $this->group = $this->getTargetGroup($this->arg('id'));
$this->profiles = $this->getProfiles();
return true;
class ApiSubscriptionsAction extends ApiBareAuthAction
{
-
- var $page = null;
- var $count = null;
- var $user = null;
var $profiles = null;
var $tag = null;
var $lite = null;
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
$this->tag = $this->arg('tag');
// Note: Twitter no longer supports 'lite'
class ApiTimelineFavoritesAction extends ApiBareAuthAction
{
-
- var $user = null;
var $notices = null;
- var $page = null;
- var $count = null;
- var $max_id = null;
- var $since_id = null;
- var $since = null;
/**
* Take arguments for running
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
class ApiTimelineFriendsAction extends ApiBareAuthAction
{
-
- var $user = null;
var $notices = null;
- var $count = null;
- var $max_id = null;
- var $since_id = null;
- var $since = null;
/**
* Take arguments for running
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
- $this->group = $this->getTargetGroup($this->arg('id'));
-
+ $this->group = $this->getTargetGroup($this->arg('id'));
$this->notices = $this->getNotices();
return true;
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$this->notices = $this->getNotices();
return true;
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->tag = $this->arg('tag');
-
+ $this->tag = $this->arg('tag');
$this->notices = $this->getNotices();
return true;
{
parent::prepare($args);
- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
class ApiAction extends Action
{
- var $format = null;
-
+ var $format = null;
+ var $user = null;
+ var $page = null;
+ var $count = null;
+ var $max_id = null;
+ var $since_id = null;
+ var $since = null;
+
/**
* Initialization.
*
function prepare($args)
{
parent::prepare($args);
+
$this->format = $this->arg('format');
+ $this->page = (int)$this->arg('page', 1);
+ $this->count = (int)$this->arg('count', 20);
+ $this->max_id = (int)$this->arg('max_id', 0);
+ $this->since_id = (int)$this->arg('since_id', 0);
+ $this->since = $this->arg('since');
+
return true;
}