summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-09 17:53:35 -0700
committerZach Copley <zach@status.net>2009-10-09 17:53:35 -0700
commit061af8fa06ccb98f667d1ee670da2dbb179d8b0e (patch)
tree2a7ac2a05af3782d012d6e4b4fe8905a250de993 /actions
parentb08d16ef2bf5995ca2feee2d2688e0080eaf5124 (diff)
CamelCase all function names in the API code
Diffstat (limited to 'actions')
-rw-r--r--actions/apiaccountratelimitstatus.php4
-rw-r--r--actions/apiblockcreate.php6
-rw-r--r--actions/apiblockdestroy.php6
-rw-r--r--actions/apidirectmessage.php20
-rw-r--r--actions/apifavoritecreate.php2
-rw-r--r--actions/apifavoritedestroy.php2
-rw-r--r--actions/apifriendshipscreate.php6
-rw-r--r--actions/apifriendshipsdestroy.php6
-rw-r--r--actions/apifriendshipsexists.php8
-rw-r--r--actions/apifriendshipsshow.php12
-rw-r--r--actions/apigroupismember.php10
-rw-r--r--actions/apigroupjoin.php2
-rw-r--r--actions/apigroupleave.php2
-rw-r--r--actions/apigrouplist.php8
-rw-r--r--actions/apigrouplistall.php8
-rw-r--r--actions/apigroupmembership.php4
-rw-r--r--actions/apigroupshow.php2
-rw-r--r--actions/apihelptest.php8
-rw-r--r--actions/apistatusesdestroy.php4
-rw-r--r--actions/apistatusesshow.php2
-rw-r--r--actions/apistatusesupdate.php2
-rw-r--r--actions/apistatusnetconfig.php10
-rw-r--r--actions/apistatusnetversion.php8
-rw-r--r--actions/apisubscriptions.php8
-rw-r--r--actions/apitimelinefavorites.php8
-rw-r--r--actions/apitimelinefriends.php8
-rw-r--r--actions/apitimelinegroup.php8
-rw-r--r--actions/apitimelinementions.php8
-rw-r--r--actions/apitimelinepublic.php8
-rw-r--r--actions/apitimelinetag.php8
-rw-r--r--actions/apitimelineuser.php8
-rw-r--r--actions/apiusershow.php14
-rw-r--r--actions/twitapisearchatom.php2
-rw-r--r--actions/twitapisearchjson.php4
34 files changed, 113 insertions, 113 deletions
diff --git a/actions/apiaccountratelimitstatus.php b/actions/apiaccountratelimitstatus.php
index b823e1cd2..af86dae6a 100644
--- a/actions/apiaccountratelimitstatus.php
+++ b/actions/apiaccountratelimitstatus.php
@@ -73,7 +73,7 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction
$reset = new DateTime();
$reset->modify('+1 hour');
- $this->init_document($this->format);
+ $this->initDocument($this->format);
if ($this->format == 'xml') {
$this->elementStart('hash');
@@ -101,7 +101,7 @@ class ApiAccountRateLimitStatusAction extends ApiBareAuthAction
print json_encode($out);
}
- $this->end_document($this->format);
+ $this->endDocument($this->format);
}
}
diff --git a/actions/apiblockcreate.php b/actions/apiblockcreate.php
index 6dd28dd5e..e003e5ee9 100644
--- a/actions/apiblockcreate.php
+++ b/actions/apiblockcreate.php
@@ -100,9 +100,9 @@ class ApiBlockCreateAction extends ApiAuthAction
if ($this->user->hasBlocked($this->other)
|| $this->user->block($this->other)
) {
- $this->init_document($this->format);
- $this->show_profile($this->other, $this->format);
- $this->end_document($this->format);
+ $this->initDocument($this->format);
+ $this->showProfile($this->other, $this->format);
+ $this->endDocument($this->format);
} else {
$this->serverError(_('Block user failed.'), 500, $this->format);
}
diff --git a/actions/apiblockdestroy.php b/actions/apiblockdestroy.php
index a869dfe46..470b60ea5 100644
--- a/actions/apiblockdestroy.php
+++ b/actions/apiblockdestroy.php
@@ -99,9 +99,9 @@ class ApiBlockDestroyAction extends ApiAuthAction
if (!$this->user->hasBlocked($this->other)
|| $this->user->unblock($this->other)
) {
- $this->init_document($this->format);
- $this->show_profile($this->other, $this->format);
- $this->end_document($this->format);
+ $this->initDocument($this->format);
+ $this->showProfile($this->other, $this->format);
+ $this->endDocument($this->format);
} else {
$this->serverError(_('Unblock user failed.'));
}
diff --git a/actions/apidirectmessage.php b/actions/apidirectmessage.php
index f0013c54c..4e55886d9 100644
--- a/actions/apidirectmessage.php
+++ b/actions/apidirectmessage.php
@@ -230,7 +230,7 @@ class ApiDirectMessageAction extends ApiAuthAction
function showXmlDirectMessages()
{
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->elementStart('direct-messages', array('type' => 'array'));
foreach ($this->messages as $m) {
@@ -239,7 +239,7 @@ class ApiDirectMessageAction extends ApiAuthAction
}
$this->elementEnd('direct-messages');
- $this->end_document('xml');
+ $this->endDocument('xml');
}
/**
@@ -250,7 +250,7 @@ class ApiDirectMessageAction extends ApiAuthAction
function showJsonDirectMessages()
{
- $this->init_document('json');
+ $this->initDocument('json');
$dmsgs = array();
@@ -259,8 +259,8 @@ class ApiDirectMessageAction extends ApiAuthAction
array_push($dmsgs, $dm_array);
}
- $this->show_json_objects($dmsgs);
- $this->end_document('json');
+ $this->showJsonObjects($dmsgs);
+ $this->endDocument('json');
}
/**
@@ -271,7 +271,7 @@ class ApiDirectMessageAction extends ApiAuthAction
function showRssDirectMessages()
{
- $this->init_document('rss');
+ $this->initDocument('rss');
$this->element('title', null, $this->title);
@@ -292,10 +292,10 @@ class ApiDirectMessageAction extends ApiAuthAction
foreach ($this->messages as $m) {
$entry = $this->rssDirectMessageArray($m);
- $this->show_twitter_rss_item($entry);
+ $this->showTwitterRssItem($entry);
}
- $this->end_twitter_rss();
+ $this->endTwitterRss();
}
/**
@@ -306,7 +306,7 @@ class ApiDirectMessageAction extends ApiAuthAction
function showAtomDirectMessages()
{
- $this->init_document('atom');
+ $this->initDocument('atom');
$this->element('title', null, $this->title);
$this->element('id', null, $this->id);
@@ -334,7 +334,7 @@ class ApiDirectMessageAction extends ApiAuthAction
$this->showTwitterAtomEntry($entry);
}
- $this->end_document('atom');
+ $this->endDocument('atom');
}
/**
diff --git a/actions/apifavoritecreate.php b/actions/apifavoritecreate.php
index db001561e..1b05eb95c 100644
--- a/actions/apifavoritecreate.php
+++ b/actions/apifavoritecreate.php
@@ -135,7 +135,7 @@ class ApiFavoriteCreateAction extends ApiAuthAction
$this->user->blowFavesCache();
if ($this->format == 'xml') {
- $this->show_single_xml_status($this->notice);
+ $this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
diff --git a/actions/apifavoritedestroy.php b/actions/apifavoritedestroy.php
index 3640459f9..aac866d7e 100644
--- a/actions/apifavoritedestroy.php
+++ b/actions/apifavoritedestroy.php
@@ -138,7 +138,7 @@ class ApiFavoriteDestroyAction extends ApiAuthAction
$this->user->blowFavesCache();
if ($this->format == 'xml') {
- $this->show_single_xml_status($this->notice);
+ $this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
diff --git a/actions/apifriendshipscreate.php b/actions/apifriendshipscreate.php
index 85eaf3a29..6c44d7961 100644
--- a/actions/apifriendshipscreate.php
+++ b/actions/apifriendshipscreate.php
@@ -126,9 +126,9 @@ class ApiFriendshipsCreateAction extends ApiAuthAction
return;
}
- $this->init_document($this->format);
- $this->show_profile($this->other, $this->format);
- $this->end_document($this->format);
+ $this->initDocument($this->format);
+ $this->showProfile($this->other, $this->format);
+ $this->endDocument($this->format);
}
}
diff --git a/actions/apifriendshipsdestroy.php b/actions/apifriendshipsdestroy.php
index 274378051..a15f202aa 100644
--- a/actions/apifriendshipsdestroy.php
+++ b/actions/apifriendshipsdestroy.php
@@ -128,9 +128,9 @@ class ApiFriendshipsDestroyAction extends ApiAuthAction
return;
}
- $this->init_document($this->format);
- $this->show_profile($this->other, $this->format);
- $this->end_document($this->format);
+ $this->initDocument($this->format);
+ $this->showProfile($this->other, $this->format);
+ $this->endDocument($this->format);
}
}
diff --git a/actions/apifriendshipsexists.php b/actions/apifriendshipsexists.php
index df9f0c949..93be5f84e 100644
--- a/actions/apifriendshipsexists.php
+++ b/actions/apifriendshipsexists.php
@@ -107,14 +107,14 @@ class ApiFriendshipsExistsAction extends ApiAction
switch ($this->format) {
case 'xml':
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->element('friends', null, $result);
- $this->end_document('xml');
+ $this->endDocument('xml');
break;
case 'json':
- $this->init_document('json');
+ $this->initDocument('json');
print json_encode($result);
- $this->end_document('json');
+ $this->endDocument('json');
break;
default:
break;
diff --git a/actions/apifriendshipsshow.php b/actions/apifriendshipsshow.php
index 0ae6a7b82..8850496c7 100644
--- a/actions/apifriendshipsshow.php
+++ b/actions/apifriendshipsshow.php
@@ -143,18 +143,18 @@ class ApiFriendshipsShowAction extends ApiBareAuthAction
return;
}
- $result = $this->twitter_relationship_array($this->source, $this->target);
+ $result = $this->twitterRelationshipArray($this->source, $this->target);
switch ($this->format) {
case 'xml':
- $this->init_document('xml');
- $this->show_twitter_xml_relationship($result[relationship]);
- $this->end_document('xml');
+ $this->initDocument('xml');
+ $this->showTwitterXmlRelationship($result[relationship]);
+ $this->endDocument('xml');
break;
case 'json':
- $this->init_document('json');
+ $this->initDocument('json');
print json_encode($result);
- $this->end_document('json');
+ $this->endDocument('json');
break;
default:
break;
diff --git a/actions/apigroupismember.php b/actions/apigroupismember.php
index 359b7ca4f..6cf327012 100644
--- a/actions/apigroupismember.php
+++ b/actions/apigroupismember.php
@@ -95,14 +95,14 @@ class ApiGroupIsMemberAction extends ApiBareAuthAction
switch($this->format) {
case 'xml':
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->element('is_member', null, $is_member);
- $this->end_document('xml');
+ $this->endDocument('xml');
break;
case 'json':
- $this->init_document('json');
- $this->show_json_objects(array('is_member' => $is_member));
- $this->end_document('json');
+ $this->initDocument('json');
+ $this->showJsonObjects(array('is_member' => $is_member));
+ $this->endDocument('json');
break;
default:
$this->clientError(
diff --git a/actions/apigroupjoin.php b/actions/apigroupjoin.php
index e51842bcb..f930aa519 100644
--- a/actions/apigroupjoin.php
+++ b/actions/apigroupjoin.php
@@ -143,7 +143,7 @@ class ApiGroupJoinAction extends ApiAuthAction
$this->show_single_xml_group($this->group);
break;
case 'json':
- $this->show_single_json_group($this->group);
+ $this->showSingleJsonGroup($this->group);
break;
default:
$this->clientError(
diff --git a/actions/apigroupleave.php b/actions/apigroupleave.php
index 332bd7b7b..4e3192ac0 100644
--- a/actions/apigroupleave.php
+++ b/actions/apigroupleave.php
@@ -129,7 +129,7 @@ class ApiGroupLeaveAction extends ApiAuthAction
$this->show_single_xml_group($this->group);
break;
case 'json':
- $this->show_single_json_group($this->group);
+ $this->showSingleJsonGroup($this->group);
break;
default:
$this->clientError(
diff --git a/actions/apigrouplist.php b/actions/apigrouplist.php
index 7a5aab72e..1fc31831a 100644
--- a/actions/apigrouplist.php
+++ b/actions/apigrouplist.php
@@ -101,15 +101,15 @@ class ApiGroupListAction extends ApiBareAuthAction
switch($this->format) {
case 'xml':
- $this->show_xml_groups($this->groups);
+ $this->showXmlGroups($this->groups);
break;
case 'rss':
- $this->show_rss_groups($this->groups, $title, $link, $subtitle);
+ $this->showRssGroups($this->groups, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() . 'api/statusnet/groups/list/' .
$this->user->id . '.atom';
- $this->show_atom_groups(
+ $this->showAtomGroups(
$this->groups,
$title,
$id,
@@ -119,7 +119,7 @@ class ApiGroupListAction extends ApiBareAuthAction
);
break;
case 'json':
- $this->show_json_groups($this->groups);
+ $this->showJsonGroups($this->groups);
break;
default:
$this->clientError(
diff --git a/actions/apigrouplistall.php b/actions/apigrouplistall.php
index 3e236816a..ef96a08bd 100644
--- a/actions/apigrouplistall.php
+++ b/actions/apigrouplistall.php
@@ -89,15 +89,15 @@ class ApiGroupListAllAction extends ApiAction
switch($this->format) {
case 'xml':
- $this->show_xml_groups($this->groups);
+ $this->showXmlGroups($this->groups);
break;
case 'rss':
- $this->show_rss_groups($this->groups, $title, $link, $subtitle);
+ $this->showRssGroups($this->groups, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() .
'api/statusnet/groups/list_all.atom';
- $this->show_atom_groups(
+ $this->showAtomGroups(
$this->groups,
$title,
$id,
@@ -107,7 +107,7 @@ class ApiGroupListAllAction extends ApiAction
);
break;
case 'json':
- $this->show_json_groups($this->groups);
+ $this->showJsonGroups($this->groups);
break;
default:
$this->clientError(
diff --git a/actions/apigroupmembership.php b/actions/apigroupmembership.php
index 0bc846d60..27f77029e 100644
--- a/actions/apigroupmembership.php
+++ b/actions/apigroupmembership.php
@@ -85,10 +85,10 @@ class ApiGroupMembershipAction extends ApiAction
switch($this->format) {
case 'xml':
- $this->show_twitter_xml_users($this->profiles);
+ $this->showTwitterXmlUsers($this->profiles);
break;
case 'json':
- $this->show_json_users($this->profiles);
+ $this->showJsonUsers($this->profiles);
break;
default:
$this->clientError(
diff --git a/actions/apigroupshow.php b/actions/apigroupshow.php
index 262fe6718..8969ae194 100644
--- a/actions/apigroupshow.php
+++ b/actions/apigroupshow.php
@@ -93,7 +93,7 @@ class ApiGroupShowAction extends ApiAction
$this->show_single_xml_group($this->group);
break;
case 'json':
- $this->show_single_json_group($this->group);
+ $this->showSingleJsonGroup($this->group);
break;
default:
$this->clientError(_('API method not found!'), 404, $this->format);
diff --git a/actions/apihelptest.php b/actions/apihelptest.php
index cd5b86cf9..4691cbf99 100644
--- a/actions/apihelptest.php
+++ b/actions/apihelptest.php
@@ -74,13 +74,13 @@ class ApiHelpTestAction extends ApiAction
parent::handle($args);
if ($this->format == 'xml') {
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->element('ok', null, 'true');
- $this->end_document('xml');
+ $this->endDocument('xml');
} elseif ($this->format == 'json') {
- $this->init_document('json');
+ $this->initDocument('json');
print '"ok"';
- $this->end_document('json');
+ $this->endDocument('json');
} else {
$this->clientError(
_('API method not found!'),
diff --git a/actions/apistatusesdestroy.php b/actions/apistatusesdestroy.php
index 7680f96dc..74a1310a2 100644
--- a/actions/apistatusesdestroy.php
+++ b/actions/apistatusesdestroy.php
@@ -112,7 +112,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction
$this->notice->delete();
if ($this->format == 'xml') {
- $this->show_single_xml_status($this->notice);
+ $this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
@@ -134,7 +134,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction
{
if (!empty($this->notice)) {
if ($this->format == 'xml') {
- $this->show_single_xml_status($this->notice);
+ $this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
diff --git a/actions/apistatusesshow.php b/actions/apistatusesshow.php
index 0096cfe6b..5d32a0bfc 100644
--- a/actions/apistatusesshow.php
+++ b/actions/apistatusesshow.php
@@ -110,7 +110,7 @@ class ApiStatusesShowAction extends ApiAction
{
if (!empty($this->notice)) {
if ($this->format == 'xml') {
- $this->show_single_xml_status($this->notice);
+ $this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php
index 7d6a574ef..479654be8 100644
--- a/actions/apistatusesupdate.php
+++ b/actions/apistatusesupdate.php
@@ -201,7 +201,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
{
if (!empty($this->notice)) {
if ($this->format == 'xml') {
- $this->show_single_xml_status($this->notice);
+ $this->showSingleXmlStatus($this->notice);
} elseif ($this->format == 'json') {
$this->show_single_json_status($this->notice);
}
diff --git a/actions/apistatusnetconfig.php b/actions/apistatusnetconfig.php
index 356942a85..a93570698 100644
--- a/actions/apistatusnetconfig.php
+++ b/actions/apistatusnetconfig.php
@@ -88,7 +88,7 @@ class ApiStatusnetConfigAction extends ApiAction
switch ($this->format) {
case 'xml':
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->elementStart('config');
// XXX: check that all sections and settings are legal XML elements
@@ -111,7 +111,7 @@ class ApiStatusnetConfigAction extends ApiAction
$this->elementEnd($section);
}
$this->elementEnd('config');
- $this->end_document('xml');
+ $this->endDocument('xml');
break;
case 'json':
$result = array();
@@ -122,9 +122,9 @@ class ApiStatusnetConfigAction extends ApiAction
= common_config($section, $setting);
}
}
- $this->init_document('json');
- $this->show_json_objects($result);
- $this->end_document('json');
+ $this->initDocument('json');
+ $this->showJsonObjects($result);
+ $this->endDocument('json');
break;
default:
$this->clientError(
diff --git a/actions/apistatusnetversion.php b/actions/apistatusnetversion.php
index fb632fd93..6af9bdd1a 100644
--- a/actions/apistatusnetversion.php
+++ b/actions/apistatusnetversion.php
@@ -77,14 +77,14 @@ class ApiStatusnetVersionAction extends ApiAction
switch ($this->format) {
case 'xml':
- $this->init_document('xml');
+ $this->initDocument('xml');
$this->element('version', null, STATUSNET_VERSION);
- $this->end_document('xml');
+ $this->endDocument('xml');
break;
case 'json':
- $this->init_document('json');
+ $this->initDocument('json');
print '"'.STATUSNET_VERSION.'"';
- $this->end_document('json');
+ $this->endDocument('json');
break;
default:
$this->clientError(
diff --git a/actions/apisubscriptions.php b/actions/apisubscriptions.php
index 1332fd71c..a952e20b8 100644
--- a/actions/apisubscriptions.php
+++ b/actions/apisubscriptions.php
@@ -108,7 +108,7 @@ class ApiSubscriptionsAction extends ApiBareAuthAction
return;
}
- $this->init_document($this->format);
+ $this->initDocument($this->format);
if (isset($this->ids_only)) {
$this->showIds();
@@ -116,7 +116,7 @@ class ApiSubscriptionsAction extends ApiBareAuthAction
$this->showProfiles(isset($this->lite) ? false : true);
}
- $this->end_document($this->format);
+ $this->endDocument($this->format);
}
/**
@@ -204,7 +204,7 @@ class ApiSubscriptionsAction extends ApiBareAuthAction
case 'xml':
$this->elementStart('users', array('type' => 'array'));
foreach ($this->profiles as $profile) {
- $this->show_profile(
+ $this->showProfile(
$profile,
$this->format,
null,
@@ -216,7 +216,7 @@ class ApiSubscriptionsAction extends ApiBareAuthAction
case 'json':
$arrays = array();
foreach ($this->profiles as $profile) {
- $arrays[] = $this->twitter_user_array(
+ $arrays[] = $this->twitterUserArray(
$profile,
$include_statuses
);
diff --git a/actions/apitimelinefavorites.php b/actions/apitimelinefavorites.php
index d35e05183..c85e56264 100644
--- a/actions/apitimelinefavorites.php
+++ b/actions/apitimelinefavorites.php
@@ -121,21 +121,21 @@ class ApiTimelineFavoritesAction extends ApiBareAuthAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline($this->notices, $title, $link, $subtitle);
+ $this->showRssTimeline($this->notices, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() .
ltrim($_SERVER['QUERY_STRING'], 'p=');
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices, $title, $id, $link, $subtitle,
null, $selfuri
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(_('API method not found!'), $code = 404);
diff --git a/actions/apitimelinefriends.php b/actions/apitimelinefriends.php
index 544824078..90f3b3c06 100644
--- a/actions/apitimelinefriends.php
+++ b/actions/apitimelinefriends.php
@@ -112,10 +112,10 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline($this->notices, $title, $link, $subtitle);
+ $this->showRssTimeline($this->notices, $title, $link, $subtitle);
break;
case 'atom':
@@ -130,13 +130,13 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction
'api/statuses/friends_timeline.atom';
}
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices, $title, $id, $link,
$subtitle, null, $selfuri
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(_('API method not found!'), $code = 404);
diff --git a/actions/apitimelinegroup.php b/actions/apitimelinegroup.php
index 6f2043fb6..2a6f35d72 100644
--- a/actions/apitimelinegroup.php
+++ b/actions/apitimelinegroup.php
@@ -108,16 +108,16 @@ class ApiTimelineGroupAction extends ApiAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline($this->notices, $title, $link, $subtitle);
+ $this->showRssTimeline($this->notices, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() .
'api/statusnet/groups/timeline/' .
$this->group->nickname . '.atom';
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices,
$title,
$id,
@@ -128,7 +128,7 @@ class ApiTimelineGroupAction extends ApiAction
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(
diff --git a/actions/apitimelinementions.php b/actions/apitimelinementions.php
index 60669d9ba..c25fb0a0e 100644
--- a/actions/apitimelinementions.php
+++ b/actions/apitimelinementions.php
@@ -118,21 +118,21 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline($this->notices, $title, $link, $subtitle);
+ $this->showRssTimeline($this->notices, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() .
ltrim($_SERVER['QUERY_STRING'], 'p=');
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices, $title, $id, $link, $subtitle,
null, $selfuri
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(_('API method not found!'), $code = 404);
diff --git a/actions/apitimelinepublic.php b/actions/apitimelinepublic.php
index b992136d1..4bff4adb6 100644
--- a/actions/apitimelinepublic.php
+++ b/actions/apitimelinepublic.php
@@ -99,20 +99,20 @@ class ApiTimelinePublicAction extends ApiAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline($this->notices, $title, $link, $subtitle);
+ $this->showRssTimeline($this->notices, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() . 'api/statuses/public_timeline.atom';
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices, $title, $id, $link,
$subtitle, null, $selfuri
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(_('API method not found!'), $code = 404);
diff --git a/actions/apitimelinetag.php b/actions/apitimelinetag.php
index 53e79e4b9..cf211b173 100644
--- a/actions/apitimelinetag.php
+++ b/actions/apitimelinetag.php
@@ -107,16 +107,16 @@ class ApiTimelineTagAction extends ApiAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline($this->notices, $title, $link, $subtitle);
+ $this->showRssTimeline($this->notices, $title, $link, $subtitle);
break;
case 'atom':
$selfuri = common_root_url() .
'api/statusnet/tags/timeline/' .
$this->tag . '.atom';
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices,
$title,
$id,
@@ -127,7 +127,7 @@ class ApiTimelineTagAction extends ApiAction
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(_('API method not found!'), $code = 404);
diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php
index 652a1b0d9..e7fac3e7a 100644
--- a/actions/apitimelineuser.php
+++ b/actions/apitimelineuser.php
@@ -123,10 +123,10 @@ class ApiTimelineUserAction extends ApiBareAuthAction
switch($this->format) {
case 'xml':
- $this->show_xml_timeline($this->notices);
+ $this->showXmlTimeline($this->notices);
break;
case 'rss':
- $this->show_rss_timeline(
+ $this->showRssTimeline(
$this->notices, $title, $link,
$subtitle, $suplink
);
@@ -140,13 +140,13 @@ class ApiTimelineUserAction extends ApiBareAuthAction
$selfuri = common_root_url() .
'api/statuses/user_timeline.atom';
}
- $this->show_atom_timeline(
+ $this->showAtomTimeline(
$this->notices, $title, $id, $link,
$subtitle, $suplink, $selfuri
);
break;
case 'json':
- $this->show_json_timeline($this->notices);
+ $this->showJsonTimeline($this->notices);
break;
default:
$this->clientError(_('API method not found!'), $code = 404);
diff --git a/actions/apiusershow.php b/actions/apiusershow.php
index 442efc194..d07040a43 100644
--- a/actions/apiusershow.php
+++ b/actions/apiusershow.php
@@ -105,16 +105,16 @@ class ApiUserShowAction extends ApiAction
return;
}
- $twitter_user = $this->twitter_user_array($this->user->getProfile(), true);
+ $twitter_user = $this->twitterUserArray($this->user->getProfile(), true);
if ($this->format == 'xml') {
- $this->init_document('xml');
- $this->show_twitter_xml_user($twitter_user);
- $this->end_document('xml');
+ $this->initDocument('xml');
+ $this->showTwitterXmlUser($twitter_user);
+ $this->endDocument('xml');
} elseif ($this->format == 'json') {
- $this->init_document('json');
- $this->show_json_objects($twitter_user);
- $this->end_document('json');
+ $this->initDocument('json');
+ $this->showJsonObjects($twitter_user);
+ $this->endDocument('json');
}
}
diff --git a/actions/twitapisearchatom.php b/actions/twitapisearchatom.php
index 0ef9d2826..7d618c471 100644
--- a/actions/twitapisearchatom.php
+++ b/actions/twitapisearchatom.php
@@ -340,7 +340,7 @@ class TwitapisearchatomAction extends ApiAction
// TODO: Here is where we'd put in a link to an atom feed for threads
$this->element("twitter:source", null,
- htmlentities($this->source_link($notice->source)));
+ htmlentities($this->sourceLink($notice->source)));
$this->elementStart('author');
diff --git a/actions/twitapisearchjson.php b/actions/twitapisearchjson.php
index 5abff6496..c7fa741a0 100644
--- a/actions/twitapisearchjson.php
+++ b/actions/twitapisearchjson.php
@@ -134,9 +134,9 @@ class TwitapisearchjsonAction extends ApiAction
$results = new JSONSearchResultsList($notice, $q, $this->rpp, $this->page);
- $this->init_document('json');
+ $this->initDocument('json');
$results->show();
- $this->end_document('json');
+ $this->endDocument('json');
}
/**