*
* @category API
* @package StatusNet
+ * @author Adrian Lang <mail@adrianlang.de>
+ * @author Evan Prodromou <evan@status.net>
+ * @author Robin Millette <robin@millette.info>
* @author Zach Copley <zach@status.net>
* @copyright 2009 StatusNet, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
exit(1);
}
-require_once INSTALLDIR.'/lib/apiauth.php';
+require_once INSTALLDIR . '/lib/apiauth.php';
/**
* Show a list of direct messages from or to the authenticating user
*
* @category API
* @package StatusNet
+ * @author Adrian Lang <mail@adrianlang.de>
+ * @author Evan Prodromou <evan@status.net>
+ * @author Robin Millette <robin@millette.info>
* @author Zach Copley <zach@status.net>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
$this->user = $this->auth_user;
if (empty($this->user)) {
- $this->clientError(_('No such user!'), 404, $this->format);
+ $this->clientError(_('No such user.'), 404, $this->format);
return;
}
function showXmlDirectMessages()
{
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->elementStart('direct-messages', array('type' => 'array'));
foreach ($this->messages as $m) {
}
$this->elementEnd('direct-messages');
- $this->end_document('xml');
+ $this->endDocument('xml');
}
/**
function showJsonDirectMessages()
{
- $this->init_document('json');
+ $this->initDocument('json');
$dmsgs = array();
array_push($dmsgs, $dm_array);
}
- $this->show_json_objects($dmsgs);
- $this->end_document('json');
+ $this->showJsonObjects($dmsgs);
+ $this->endDocument('json');
}
/**
function showRssDirectMessages()
{
- $this->init_document('rss');
+ $this->initDocument('rss');
$this->element('title', null, $this->title);
foreach ($this->messages as $m) {
$entry = $this->rssDirectMessageArray($m);
- $this->show_twitter_rss_item($entry);
+ $this->showTwitterRssItem($entry);
}
- $this->end_twitter_rss();
+ $this->endTwitterRss();
}
/**
function showAtomDirectMessages()
{
- $this->init_document('atom');
+ $this->initDocument('atom');
$this->element('title', null, $this->title);
$this->element('id', null, $this->id);
$this->showTwitterAtomEntry($entry);
}
- $this->end_document('atom');
+ $this->endDocument('atom');
}
/**