More PEAR coding standards global changes. Here, I've changed all
instances of TRUE to true and FALSE to false.
+]
+[move opening brace of class declaration to next line
+Evan Prodromou <evan@prodromou.name>**20081223194923
+
+ Another gigantor PEAR coding standards patch. Here, I've moved the
+ opening curly bracket on a class statement to the following line.
+
]
\ No newline at end of file
require_once(INSTALLDIR.'/lib/omb.php');
-class AccesstokenAction extends Action {
+class AccesstokenAction extends Action
+{
function handle($args)
{
parent::handle($args);
require_once(INSTALLDIR.'/actions/showstream.php');
-class AllAction extends StreamAction {
+class AllAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class AllrssAction extends Rss10Action {
+class AllrssAction extends Rss10Action
+{
var $user = null;
if (!defined('LACONICA')) { exit(1); }
-class ApiAction extends Action {
+class ApiAction extends Action
+{
var $user;
var $content_type;
if (!defined('LACONICA')) { exit(1); }
-class AvatarbynicknameAction extends Action {
+class AvatarbynicknameAction extends Action
+{
function handle($args)
{
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
-class BlockAction extends Action {
+class BlockAction extends Action
+{
var $profile = null;
if (!defined('LACONICA')) { exit(1); }
-class ConfirmaddressAction extends Action {
+class ConfirmaddressAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/deleteaction.php');
-class DeletenoticeAction extends DeleteAction {
+class DeletenoticeAction extends DeleteAction
+{
function handle($args)
{
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
-class DeleteprofileAction extends Action {
+class DeleteprofileAction extends Action
+{
function handle($args)
{
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
-class DisfavorAction extends Action {
+class DisfavorAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class DocAction extends Action {
+class DocAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class EmailsettingsAction extends SettingsAction {
+class EmailsettingsAction extends SettingsAction
+{
function get_instructions()
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebookhomeAction extends FacebookAction {
+class FacebookhomeAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebookinviteAction extends FacebookAction {
+class FacebookinviteAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebookremoveAction extends FacebookAction {
+class FacebookremoveAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebooksettingsAction extends FacebookAction {
+class FacebooksettingsAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/mail.php');
-class FavorAction extends Action {
+class FavorAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/stream.php');
-class FavoritedAction extends StreamAction {
+class FavoritedAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class FavoritesrssAction extends Rss10Action {
+class FavoritesrssAction extends Rss10Action
+{
var $user = null;
require_once(INSTALLDIR.'/lib/stream.php');
require_once(INSTALLDIR.'/lib/profilelist.php');
-class FeaturedAction extends StreamAction {
+class FeaturedAction extends StreamAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class FinishaddopenidAction extends Action {
+class FinishaddopenidAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class FinishimmediateAction extends Action {
+class FinishimmediateAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class FinishopenidloginAction extends Action {
+class FinishopenidloginAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class FinishremotesubscribeAction extends Action {
+class FinishremotesubscribeAction extends Action
+{
function handle($args)
{
define('LISTENEE', -1);
define('BOTH', 0);
-class FoafAction extends Action {
+class FoafAction extends Action
+{
function is_readonly()
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
require_once(INSTALLDIR.'/lib/jabber.php');
-class ImsettingsAction extends SettingsAction {
+class ImsettingsAction extends SettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class InviteAction extends Action {
+class InviteAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class LoginAction extends Action {
+class LoginAction extends Action
+{
function is_readonly()
{
require_once(INSTALLDIR.'/lib/openid.php');
-class LogoutAction extends Action {
+class LogoutAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class MicrosummaryAction extends Action {
+class MicrosummaryAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class NewmessageAction extends Action {
+class NewmessageAction extends Action
+{
function handle($args)
{
require_once INSTALLDIR . '/lib/noticelist.php';
-class NewnoticeAction extends Action {
+class NewnoticeAction extends Action
+{
function handle($args)
{
# XXX common parent for people and content search?
-class NoticesearchAction extends SearchAction {
+class NoticesearchAction extends SearchAction
+{
function get_instructions()
{
// Formatting of RSS handled by Rss10Action
-class NoticesearchrssAction extends Rss10Action {
+class NoticesearchrssAction extends Rss10Action
+{
function init()
{
require_once(INSTALLDIR.'/lib/mail.php');
-class NudgeAction extends Action {
+class NudgeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class OpenidloginAction extends Action {
+class OpenidloginAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
require_once(INSTALLDIR.'/lib/openid.php');
-class OpenidsettingsAction extends SettingsAction {
+class OpenidsettingsAction extends SettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class OpensearchAction extends Action {
+class OpensearchAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class OthersettingsAction extends SettingsAction {
+class OthersettingsAction extends SettingsAction
+{
function get_instructions()
{
require_once(INSTALLDIR.'/lib/searchaction.php');
require_once(INSTALLDIR.'/lib/profilelist.php');
-class PeoplesearchAction extends SearchAction {
+class PeoplesearchAction extends SearchAction
+{
function get_instructions()
{
}
}
-class PeopleSearchResults extends ProfileList {
+class PeopleSearchResults extends ProfileList
+{
var $terms = null;
var $pattern = null;
require_once(INSTALLDIR.'/lib/profilelist.php');
-class PeopletagAction extends Action {
+class PeopletagAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class PostnoticeAction extends Action {
+class PostnoticeAction extends Action
+{
function handle($args)
{
parent::handle($args);
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class ProfilesettingsAction extends SettingsAction {
+class ProfilesettingsAction extends SettingsAction
+{
function get_instructions()
{
require_once(INSTALLDIR.'/lib/stream.php');
-class PublicAction extends StreamAction {
+class PublicAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class PublicrssAction extends Rss10Action {
+class PublicrssAction extends Rss10Action
+{
function init()
{
# XXX: factor out similarities with XrdsAction
-class PublicxrdsAction extends Action {
+class PublicxrdsAction extends Action
+{
function is_readonly()
{
define(MAX_RECOVERY_TIME, 24 * 60 * 60);
-class RecoverpasswordAction extends Action {
+class RecoverpasswordAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class RegisterAction extends Action {
+class RegisterAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class RemotesubscribeAction extends Action {
+class RemotesubscribeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/actions/showstream.php');
-class RepliesAction extends StreamAction {
+class RepliesAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class RepliesrssAction extends Rss10Action {
+class RepliesrssAction extends Rss10Action
+{
var $user = null;
require_once(INSTALLDIR.'/lib/omb.php');
-class RequesttokenAction extends Action {
+class RequesttokenAction extends Action
+{
function is_readonly()
{
require_once(INSTALLDIR.'/actions/showstream.php');
-class ShowfavoritesAction extends StreamAction {
+class ShowfavoritesAction extends StreamAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/mailbox.php');
-class ShowmessageAction extends MailboxAction {
+class ShowmessageAction extends MailboxAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/stream.php');
-class ShownoticeAction extends StreamAction {
+class ShownoticeAction extends StreamAction
+{
var $notice = null;
var $profile = null;
define('SUBSCRIPTIONS_PER_ROW', 4);
define('SUBSCRIPTIONS', 80);
-class ShowstreamAction extends StreamAction {
+class ShowstreamAction extends StreamAction
+{
function handle($args)
{
# We don't show the author for a profile, since we already know who it is!
-class ProfileNoticeList extends NoticeList {
+class ProfileNoticeList extends NoticeList
+{
function newListItem($notice)
{
return new ProfileNoticeListItem($notice);
}
}
-class ProfileNoticeListItem extends NoticeListItem {
+class ProfileNoticeListItem extends NoticeListItem
+{
function showAuthor()
{
return;
require_once(INSTALLDIR.'/lib/settingsaction.php');
require_once(INSTALLDIR.'/actions/emailsettings.php');
-class SmssettingsAction extends EmailsettingsAction {
+class SmssettingsAction extends EmailsettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class SubeditAction extends Action {
+class SubeditAction extends Action
+{
var $profile = null;
if (!defined('LACONICA')) { exit(1); }
-class SubscribeAction extends Action {
+class SubscribeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/gallery.php');
-class SubscribersAction extends GalleryAction {
+class SubscribersAction extends GalleryAction
+{
function gallery_type()
{
}
}
-class SubscribersList extends ProfileList {
+class SubscribersList extends ProfileList
+{
function show_owner_controls($profile)
{
common_block_form($profile, array('action' => 'subscribers',
require_once(INSTALLDIR.'/lib/gallery.php');
-class SubscriptionsAction extends GalleryAction {
+class SubscriptionsAction extends GalleryAction
+{
function gallery_type()
{
}
}
-class SubscriptionsList extends ProfileList {
+class SubscriptionsList extends ProfileList
+{
function show_owner_controls($profile)
{
if (!defined('LACONICA')) { exit(1); }
-class SupAction extends Action {
+class SupAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/actions/showstream.php');
define('TAGS_PER_PAGE', 100);
-class TagAction extends StreamAction {
+class TagAction extends StreamAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class TagotherAction extends Action {
+class TagotherAction extends Action
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class TagrssAction extends Rss10Action {
+class TagrssAction extends Rss10Action
+{
function init()
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapiaccountAction extends TwitterapiAction {
+class TwitapiaccountAction extends TwitterapiAction
+{
function verify_credentials($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapiblocksAction extends TwitterapiAction {
+class TwitapiblocksAction extends TwitterapiAction
+{
function create($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class Twitapidirect_messagesAction extends TwitterapiAction {
+class Twitapidirect_messagesAction extends TwitterapiAction
+{
function direct_messages($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapifavoritesAction extends TwitterapiAction {
+class TwitapifavoritesAction extends TwitterapiAction
+{
function favorites($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapifriendshipsAction extends TwitterapiAction {
+class TwitapifriendshipsAction extends TwitterapiAction
+{
function create($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapihelpAction extends TwitterapiAction {
+class TwitapihelpAction extends TwitterapiAction
+{
/* Returns the string "ok" in the requested format with a 200 OK HTTP status code.
* URL:http://identi.ca/api/help/test.format
require_once(INSTALLDIR.'/lib/twitterapi.php');
# This naming convention looks real sick
-class TwitapinotificationsAction extends TwitterapiAction {
+class TwitapinotificationsAction extends TwitterapiAction
+{
function follow($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapistatusesAction extends TwitterapiAction {
+class TwitapistatusesAction extends TwitterapiAction
+{
function public_timeline($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapiusersAction extends TwitterapiAction {
+class TwitapiusersAction extends TwitterapiAction
+{
function show($args, $apidata)
{
define('SUBSCRIPTIONS', 80);
-class TwittersettingsAction extends SettingsAction {
+class TwittersettingsAction extends SettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class UnblockAction extends Action {
+class UnblockAction extends Action
+{
var $profile = null;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class UnsubscribeAction extends Action {
+class UnsubscribeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class UpdateprofileAction extends Action {
+class UpdateprofileAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
define('TIMESTAMP_THRESHOLD', 300);
-class UserauthorizationAction extends Action {
+class UserauthorizationAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class UserbyidAction extends Action {
+class UserbyidAction extends Action
+{
function is_readonly()
{
// Formatting of RSS handled by Rss10Action
-class UserrssAction extends Rss10Action {
+class UserrssAction extends Rss10Action
+{
var $user = null;
require_once(INSTALLDIR.'/lib/omb.php');
-class XrdsAction extends Action {
+class XrdsAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class Channel {
+class Channel
+{
function on($user)
{
}
}
-class XMPPChannel extends Channel {
+class XMPPChannel extends Channel
+{
var $conn = null;
}
-class WebChannel extends Channel {
+class WebChannel extends Channel
+{
function source()
{
}
-class AjaxWebChannel extends WebChannel {
+class AjaxWebChannel extends WebChannel
+{
function output($user, $text)
{
}
-class MailChannel extends Channel {
+class MailChannel extends Channel
+{
var $addr = null;
require_once(INSTALLDIR.'/classes/Channel.php');
-class Command {
+class Command
+{
var $user = null;
}
}
-class UnimplementedCommand extends Command {
+class UnimplementedCommand extends Command
+{
function execute($channel)
{
$channel->error($this->user, _("Sorry, this command is not yet implemented."));
}
}
-class TrackingCommand extends UnimplementedCommand {
+class TrackingCommand extends UnimplementedCommand
+{
}
-class TrackOffCommand extends UnimplementedCommand {
+class TrackOffCommand extends UnimplementedCommand
+{
}
-class TrackCommand extends UnimplementedCommand {
+class TrackCommand extends UnimplementedCommand
+{
var $word = null;
function __construct($user, $word)
{
}
}
-class UntrackCommand extends UnimplementedCommand {
+class UntrackCommand extends UnimplementedCommand
+{
var $word = null;
function __construct($user, $word)
{
}
}
-class NudgeCommand extends UnimplementedCommand {
+class NudgeCommand extends UnimplementedCommand
+{
var $other = null;
function __construct($user, $other)
{
}
}
-class InviteCommand extends UnimplementedCommand {
+class InviteCommand extends UnimplementedCommand
+{
var $other = null;
function __construct($user, $other)
{
}
}
-class StatsCommand extends Command {
+class StatsCommand extends Command
+{
function execute($channel)
{
}
}
-class FavCommand extends Command {
+class FavCommand extends Command
+{
var $other = null;
}
}
-class WhoisCommand extends Command {
+class WhoisCommand extends Command
+{
var $other = null;
function __construct($user, $other)
{
}
}
-class MessageCommand extends Command {
+class MessageCommand extends Command
+{
var $other = null;
var $text = null;
function __construct($user, $other, $text)
}
}
-class GetCommand extends Command {
+class GetCommand extends Command
+{
var $other = null;
}
}
-class SubCommand extends Command {
+class SubCommand extends Command
+{
var $other = null;
}
}
-class UnsubCommand extends Command {
+class UnsubCommand extends Command
+{
var $other = null;
}
}
-class OffCommand extends Command {
+class OffCommand extends Command
+{
var $other = null;
function __construct($user, $other=null)
{
}
}
-class OnCommand extends Command {
+class OnCommand extends Command
+{
var $other = null;
function __construct($user, $other=null)
{
}
}
-class HelpCommand extends Command {
+class HelpCommand extends Command
+{
function execute($channel)
{
$channel->output($this->user,
require_once(INSTALLDIR.'/classes/Command.php');
-class CommandInterpreter {
+class CommandInterpreter
+{
function handle_command($user, $text)
{
require_once(INSTALLDIR.'/classes/Notice.php');
-class NoticeWrapper extends Notice {
+class NoticeWrapper extends Notice
+{
public $id; // int(4) primary_key not_null
public $profile_id; // int(4) not_null
if (!defined('LACONICA')) { exit(1); }
-class ShortUrlApi {
+class ShortUrlApi
+{
protected $service_url;
function __construct($service_url)
}
}
-class LilUrl extends ShortUrlApi {
+class LilUrl extends ShortUrlApi
+{
function __construct()
{
parent::__construct('http://ur1.ca/');
}
-class PtitUrl extends ShortUrlApi {
+class PtitUrl extends ShortUrlApi
+{
function __construct()
{
parent::__construct('http://ptiturl.com/?creer=oui&action=Reduire&url=');
}
}
-class TightUrl extends ShortUrlApi {
+class TightUrl extends ShortUrlApi
+{
function __construct()
{
parent::__construct('http://2tu.us/?save=y&url=');
if (!defined('LACONICA')) { exit(1); }
-class DeleteAction extends Action {
+class DeleteAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/extlib/facebook/facebook.php');
-class FacebookAction extends Action {
+class FacebookAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class LaconicaOAuthDataStore extends OAuthDataStore {
+class LaconicaOAuthDataStore extends OAuthDataStore
+{
- # We keep a record of who's contacted us
+ // We keep a record of who's contacted us
function lookup_consumer($consumer_key)
{
$t->consumer_key = $consumer->key;
$t->tok = common_good_rand(16);
$t->secret = common_good_rand(16);
- $t->type = 0; # request
- $t->state = 0; # unauthorized
+ $t->type = 0; // request
+ $t->state = 0; // unauthorized
$t->created = DB_DataObject_Cast::dateTime();
if (!$t->insert()) {
return null;
}
}
- # defined in OAuthDataStore, but not implemented anywhere
+ // defined in OAuthDataStore, but not implemented anywhere
function fetch_request_token($consumer)
{
$rt = new Token();
$rt->consumer_key = $consumer->key;
$rt->tok = $token->key;
- $rt->type = 0; # request
- if ($rt->find(true) && $rt->state == 1) { # authorized
+ $rt->type = 0; // request
+ if ($rt->find(true) && $rt->state == 1) { // authorized
common_debug('request token found.', __FILE__);
$at = new Token();
$at->consumer_key = $consumer->key;
$at->tok = common_good_rand(16);
$at->secret = common_good_rand(16);
- $at->type = 1; # access
+ $at->type = 1; // access
$at->created = DB_DataObject_Cast::dateTime();
if (!$at->insert()) {
$e = $at->_lastError;
return null;
} else {
common_debug('access token "'.$at->tok.'" inserted', __FILE__);
- # burn the old one
+ // burn the old one
$orig_rt = clone($rt);
- $rt->state = 2; # used
+ $rt->state = 2; // used
if (!$rt->update($orig_rt)) {
return null;
}
common_debug('request token "'.$rt->tok.'" updated', __FILE__);
- # Update subscription
- # XXX: mixing levels here
+ // Update subscription
+ // XXX: mixing levels here
$sub = Subscription::staticGet('token', $rt->tok);
if (!$sub) {
return null;
}
}
- # defined in OAuthDataStore, but not implemented anywhere
+ // defined in OAuthDataStore, but not implemented anywhere
function fetch_access_token($consumer)
{
if (!defined('LACONICA')) { exit(1); }
-class PersonalAction extends Action {
+class PersonalAction extends Action
+{
function is_readonly()
{
define('PROFILES_PER_PAGE', 20);
-class ProfileList {
+class ProfileList
+{
var $profile = null;
var $owner = null;
require_once(INSTALLDIR.'/classes/Queue_item.php');
require_once(INSTALLDIR.'/classes/Notice.php');
-class QueueHandler extends Daemon {
+class QueueHandler extends Daemon
+{
var $_id = 'generic';
define('DEFAULT_RSS_LIMIT', 48);
-class Rss10Action extends Action {
+class Rss10Action extends Action
+{
# This will contain the details of each feed item's author and be used to generate SIOC data.
var $creators = array();
if (!defined('LACONICA')) { exit(1); }
-class SearchEngine {
+class SearchEngine
+{
protected $target;
protected $table;
}
}
-class SphinxSearch extends SearchEngine {
+class SphinxSearch extends SearchEngine
+{
private $sphinx;
private $connected;
}
}
-class MySQLSearch extends SearchEngine {
+class MySQLSearch extends SearchEngine
+{
function query($q)
{
if ('identica_people' === $this->table)
}
}
-class PGSearch extends SearchEngine {
+class PGSearch extends SearchEngine
+{
function query($q)
{
if ('identica_people' === $this->table)
if (!defined('LACONICA')) { exit(1); }
-class SearchAction extends Action {
+class SearchAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class SettingsAction extends Action {
+class SettingsAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/personal.php');
require_once(INSTALLDIR.'/lib/noticelist.php');
-class StreamAction extends PersonalAction {
+class StreamAction extends PersonalAction
+{
function public_views_menu()
{
if (!defined('LACONICA')) { exit(1); }
-class TwitterapiAction extends Action {
+class TwitterapiAction extends Action
+{
var $auth_user;
* superclass.
*/
-class XmppQueueHandler extends QueueHandler {
+class XmppQueueHandler extends QueueHandler
+{
function start()
{
set_error_handler('common_error_handler');
-class EnjitQueueHandler extends QueueHandler {
+class EnjitQueueHandler extends QueueHandler
+{
function transport()
{
set_error_handler('common_error_handler');
-class JabberQueueHandler extends XmppQueueHandler {
+class JabberQueueHandler extends XmppQueueHandler
+{
var $conn = null;
# FIXME: we use both Mail_mimeDecode and mailparse
# Need to move everything to mailparse
-class MailerDaemon {
+class MailerDaemon
+{
function __construct()
{
set_error_handler('common_error_handler');
-class OmbQueueHandler extends QueueHandler {
+class OmbQueueHandler extends QueueHandler
+{
function transport()
{
set_error_handler('common_error_handler');
-class PublicQueueHandler extends XmppQueueHandler {
+class PublicQueueHandler extends XmppQueueHandler
+{
function transport()
{
set_error_handler('common_error_handler');
-class SmsQueueHandler extends QueueHandler {
+class SmsQueueHandler extends QueueHandler
+{
function transport()
{
define('CLAIM_TIMEOUT', 1200);
-class XmppConfirmHandler extends XmppQueueHandler {
+class XmppConfirmHandler extends XmppQueueHandler
+{
var $_id = 'confirm';
# in jabber.php, which create a new XMPP class. A more elegant (?) solution
# might be to use make this a subclass of XMPP.
-class XMPPDaemon extends Daemon {
+class XMPPDaemon extends Daemon
+{
function XMPPDaemon($resource=null)
{
-hunk ./actions/accesstoken.php 36
-- common_debug('got this token: "'.print_r($token,TRUE).'"', __FILE__);
-+ common_debug('got this token: "'.print_r($token,true).'"', __FILE__);
-hunk ./actions/emailsettings.php 121
-- if ($confirm->find(TRUE)) {
-+ if ($confirm->find(true)) {
-hunk ./actions/emailsettings.php 182
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/emailsettings.php 232
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/emailsettings.php 242
-- $this->show_form($msg, TRUE);
-+ $this->show_form($msg, true);
-hunk ./actions/emailsettings.php 266
-- $this->show_form(_('Confirmation cancelled.'), TRUE);
-+ $this->show_form(_('Confirmation cancelled.'), true);
-hunk ./actions/emailsettings.php 293
-- $this->show_form(_('The address was removed.'), TRUE);
-+ $this->show_form(_('The address was removed.'), true);
-hunk ./actions/emailsettings.php 313
-- $this->show_form(_('Incoming email address removed.'), TRUE);
-+ $this->show_form(_('Incoming email address removed.'), true);
-hunk ./actions/emailsettings.php 328
-- $this->show_form(_('New incoming email address added.'), TRUE);
-+ $this->show_form(_('New incoming email address added.'), true);
-hunk ./actions/finishremotesubscribe.php 281
-- common_debug('got result: "'.print_r($result,TRUE).'"', __FILE__);
-+ common_debug('got result: "'.print_r($result,true).'"', __FILE__);
-hunk ./actions/foaf.php 125
-- common_debug('Got a bad subscription: '.print_r($sub,TRUE));
-+ common_debug('Got a bad subscription: '.print_r($sub,true));
-hunk ./actions/foaf.php 147
-- common_debug('Got a bad subscription: '.print_r($sub,TRUE));
-+ common_debug('Got a bad subscription: '.print_r($sub,true));
-hunk ./actions/imsettings.php 96
-- if ($confirm->find(TRUE)) {
-+ if ($confirm->find(true)) {
-hunk ./actions/imsettings.php 149
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/imsettings.php 199
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/imsettings.php 213
-- $this->show_form($msg, TRUE);
-+ $this->show_form($msg, true);
-hunk ./actions/imsettings.php 237
-- $this->show_form(_('Confirmation cancelled.'), TRUE);
-+ $this->show_form(_('Confirmation cancelled.'), true);
-hunk ./actions/imsettings.php 266
-- $this->show_form(_('The address was removed.'), TRUE);
-+ $this->show_form(_('The address was removed.'), true);
-hunk ./actions/othersettings.php 56
-- common_dropdown('urlshorteningservice', _('Service'), $services, _('Automatic shortening service to use.'), FALSE, $user->urlshorteningservice);
-+ common_dropdown('urlshorteningservice', _('Service'), $services, _('Automatic shortening service to use.'), false, $user->urlshorteningservice);
-hunk ./actions/othersettings.php 177
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/profilesettings.php 99
-- common_dropdown('language', _('Language'), get_nice_language_list(), _('Preferred language'), TRUE, $language);
-+ common_dropdown('language', _('Language'), get_nice_language_list(), _('Preferred language'), true, $language);
-hunk ./actions/profilesettings.php 105
-- common_dropdown('timezone', _('Timezone'), $timezones, _('What timezone are you normally in?'), TRUE, $timezone);
-+ common_dropdown('timezone', _('Timezone'), $timezones, _('What timezone are you normally in?'), true, $timezone);
-hunk ./actions/profilesettings.php 281
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/profilesettings.php 301
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/profilesettings.php 343
-- $this->show_form(_('Settings saved.'), TRUE);
-+ $this->show_form(_('Settings saved.'), true);
-hunk ./actions/profilesettings.php 437
-- if ($val !== TRUE) {
-+ if ($val !== true) {
-hunk ./actions/smssettings.php 114
-- if ($confirm->find(TRUE)) {
-+ if ($confirm->find(true)) {
-hunk ./actions/smssettings.php 168
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/smssettings.php 218
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/smssettings.php 232
-- $this->show_form($msg, TRUE);
-+ $this->show_form($msg, true);
-hunk ./actions/smssettings.php 260
-- $this->show_form(_('Confirmation cancelled.'), TRUE);
-+ $this->show_form(_('Confirmation cancelled.'), true);
-hunk ./actions/smssettings.php 290
-- $this->show_form(_('The address was removed.'), TRUE);
-+ $this->show_form(_('The address was removed.'), true);
-hunk ./actions/twitapifriendships.php 99
-- if ($sub->find(TRUE)) {
-+ if ($sub->find(true)) {
-hunk ./actions/twittersettings.php 291
-- $this->show_form(_('Twitter account removed.'), TRUE);
-+ $this->show_form(_('Twitter account removed.'), true);
-hunk ./actions/twittersettings.php 328
-- if ($result === FALSE) {
-+ if ($result === false) {
-hunk ./actions/userauthorization.php 214
-- common_debug('request token to look up: "'.print_r($rt,TRUE).'"');
-+ common_debug('request token to look up: "'.print_r($rt,true).'"');
-hunk ./actions/userauthorization.php 224
-- return FALSE;
-+ return false;
-hunk ./actions/userauthorization.php 280
-- return FALSE;
-+ return false;
-hunk ./actions/userauthorization.php 287
-- return FALSE;
-+ return false;
-hunk ./actions/userauthorization.php 292
-- return FALSE;
-+ return false;
-hunk ./actions/userauthorization.php 298
-- return FALSE;
-+ return false;
-hunk ./actions/userauthorization.php 314
-- return FALSE;
-+ return false;
-hunk ./actions/userauthorization.php 317
-- return TRUE;
-+ return true;
-hunk ./actions/userauthorization.php 443
-- if ($sub->find(TRUE)) {
-+ if ($sub->find(true)) {
-hunk ./classes/Foreign_link.php 38
-- if ($flink->find(TRUE)) {
-+ if ($flink->find(true)) {
-hunk ./classes/Foreign_link.php 51
-- if ($flink->find(TRUE)) {
-+ if ($flink->find(true)) {
-hunk ./classes/Foreign_link.php 67
-- if ($fuser->find(TRUE)) {
-+ if ($fuser->find(true)) {
-hunk ./classes/Notice.php 324
-- $needAnd = FALSE;
-- $needWhere = TRUE;
-+ $needAnd = false;
-+ $needWhere = true;
-hunk ./classes/Notice.php 328
-- $needWhere = FALSE;
-- $needAnd = TRUE;
-+ $needWhere = false;
-+ $needAnd = true;
-hunk ./classes/Notice.php 336
-- $needWhere = FALSE;
-+ $needWhere = false;
-hunk ./classes/Notice.php 348
-- $needWhere = FALSE;
-+ $needWhere = false;
-hunk ./classes/Notice.php 360
-- $needWhere = FALSE;
-+ $needWhere = false;
-hunk ./classes/Notice.php 414
-- if ($notices !== FALSE) {
-+ if ($notices !== false) {
-hunk ./classes/Queue_item.php 37
-- $cnt = $qi->find(TRUE);
-+ $cnt = $qi->find(true);
-hunk ./classes/User.php 202
-- return FALSE;
-+ return false;
-hunk ./classes/User.php 236
-- return FALSE;
-+ return false;
-hunk ./classes/User.php 250
-- return FALSE;
-+ return false;
-hunk ./classes/User.php 264
-- return FALSE;
-+ return false;
-hunk ./lib/oauthstore.php 62
-- if ($n->find(TRUE)) {
-- return TRUE;
-+ if ($n->find(true)) {
-+ return true;
-hunk ./lib/oauthstore.php 68
-- return FALSE;
-+ return false;
+hunk ./actions/accesstoken.php 24
+-class AccesstokenAction extends Action {
++class AccesstokenAction extends Action
++{
+hunk ./actions/all.php 24
+-class AllAction extends StreamAction {
++class AllAction extends StreamAction
++{
+hunk ./actions/allrss.php 26
+-class AllrssAction extends Rss10Action {
++class AllrssAction extends Rss10Action
++{
+hunk ./actions/api.php 22
+-class ApiAction extends Action {
++class ApiAction extends Action
++{
+hunk ./actions/avatarbynickname.php 22
+-class AvatarbynicknameAction extends Action {
++class AvatarbynicknameAction extends Action
++{
+hunk ./actions/block.php 22
+-class BlockAction extends Action {
++class BlockAction extends Action
++{
+hunk ./actions/confirmaddress.php 22
+-class ConfirmaddressAction extends Action {
++class ConfirmaddressAction extends Action
++{
+hunk ./actions/deletenotice.php 24
+-class DeletenoticeAction extends DeleteAction {
++class DeletenoticeAction extends DeleteAction
++{
+hunk ./actions/deleteprofile.php 22
+-class DeleteprofileAction extends Action {
++class DeleteprofileAction extends Action
++{
+hunk ./actions/disfavor.php 22
+-class DisfavorAction extends Action {
++class DisfavorAction extends Action
++{
+hunk ./actions/doc.php 22
+-class DocAction extends Action {
++class DocAction extends Action
++{
+hunk ./actions/emailsettings.php 24
+-class EmailsettingsAction extends SettingsAction {
++class EmailsettingsAction extends SettingsAction
++{
+hunk ./actions/facebookhome.php 24
+-class FacebookhomeAction extends FacebookAction {
++class FacebookhomeAction extends FacebookAction
++{
+hunk ./actions/facebookinvite.php 24
+-class FacebookinviteAction extends FacebookAction {
++class FacebookinviteAction extends FacebookAction
++{
+hunk ./actions/facebookremove.php 24
+-class FacebookremoveAction extends FacebookAction {
++class FacebookremoveAction extends FacebookAction
++{
+hunk ./actions/facebooksettings.php 24
+-class FacebooksettingsAction extends FacebookAction {
++class FacebooksettingsAction extends FacebookAction
++{
+hunk ./actions/favor.php 24
+-class FavorAction extends Action {
++class FavorAction extends Action
++{
+hunk ./actions/favorited.php 24
+-class FavoritedAction extends StreamAction {
++class FavoritedAction extends StreamAction
++{
+hunk ./actions/favoritesrss.php 26
+-class FavoritesrssAction extends Rss10Action {
++class FavoritesrssAction extends Rss10Action
++{
+hunk ./actions/featured.php 25
+-class FeaturedAction extends StreamAction {
++class FeaturedAction extends StreamAction
++{
+hunk ./actions/finishaddopenid.php 24
+-class FinishaddopenidAction extends Action {
++class FinishaddopenidAction extends Action
++{
+hunk ./actions/finishimmediate.php 24
+-class FinishimmediateAction extends Action {
++class FinishimmediateAction extends Action
++{
+hunk ./actions/finishopenidlogin.php 24
+-class FinishopenidloginAction extends Action {
++class FinishopenidloginAction extends Action
++{
+hunk ./actions/finishremotesubscribe.php 24
+-class FinishremotesubscribeAction extends Action {
++class FinishremotesubscribeAction extends Action
++{
+hunk ./actions/foaf.php 26
+-class FoafAction extends Action {
++class FoafAction extends Action
++{
+hunk ./actions/imsettings.php 25
+-class ImsettingsAction extends SettingsAction {
++class ImsettingsAction extends SettingsAction
++{
+hunk ./actions/invite.php 22
+-class InviteAction extends Action {
++class InviteAction extends Action
++{
+hunk ./actions/login.php 22
+-class LoginAction extends Action {
++class LoginAction extends Action
++{
+hunk ./actions/logout.php 24
+-class LogoutAction extends Action {
++class LogoutAction extends Action
++{
+hunk ./actions/microsummary.php 22
+-class MicrosummaryAction extends Action {
++class MicrosummaryAction extends Action
++{
+hunk ./actions/newmessage.php 22
+-class NewmessageAction extends Action {
++class NewmessageAction extends Action
++{
+hunk ./actions/newnotice.php 24
+-class NewnoticeAction extends Action {
++class NewnoticeAction extends Action
++{
+hunk ./actions/noticesearch.php 26
+-class NoticesearchAction extends SearchAction {
++class NoticesearchAction extends SearchAction
++{
+hunk ./actions/noticesearchrss.php 26
+-class NoticesearchrssAction extends Rss10Action {
++class NoticesearchrssAction extends Rss10Action
++{
+hunk ./actions/nudge.php 24
+-class NudgeAction extends Action {
++class NudgeAction extends Action
++{
+hunk ./actions/openidlogin.php 24
+-class OpenidloginAction extends Action {
++class OpenidloginAction extends Action
++{
+hunk ./actions/openidsettings.php 25
+-class OpenidsettingsAction extends SettingsAction {
++class OpenidsettingsAction extends SettingsAction
++{
+hunk ./actions/opensearch.php 22
+-class OpensearchAction extends Action {
++class OpensearchAction extends Action
++{
+hunk ./actions/othersettings.php 24
+-class OthersettingsAction extends SettingsAction {
++class OthersettingsAction extends SettingsAction
++{
+hunk ./actions/peoplesearch.php 25
+-class PeoplesearchAction extends SearchAction {
++class PeoplesearchAction extends SearchAction
++{
+hunk ./actions/peoplesearch.php 73
+-class PeopleSearchResults extends ProfileList {
++class PeopleSearchResults extends ProfileList
++{
+hunk ./actions/peopletag.php 24
+-class PeopletagAction extends Action {
++class PeopletagAction extends Action
++{
+hunk ./actions/postnotice.php 24
+-class PostnoticeAction extends Action {
++class PostnoticeAction extends Action
++{
+hunk ./actions/profilesettings.php 24
+-class ProfilesettingsAction extends SettingsAction {
++class ProfilesettingsAction extends SettingsAction
++{
+hunk ./actions/public.php 24
+-class PublicAction extends StreamAction {
++class PublicAction extends StreamAction
++{
+hunk ./actions/publicrss.php 26
+-class PublicrssAction extends Rss10Action {
++class PublicrssAction extends Rss10Action
++{
+hunk ./actions/publicxrds.php 26
+-class PublicxrdsAction extends Action {
++class PublicxrdsAction extends Action
++{
+hunk ./actions/recoverpassword.php 26
+-class RecoverpasswordAction extends Action {
++class RecoverpasswordAction extends Action
++{
+hunk ./actions/register.php 22
+-class RegisterAction extends Action {
++class RegisterAction extends Action
++{
+hunk ./actions/remotesubscribe.php 24
+-class RemotesubscribeAction extends Action {
++class RemotesubscribeAction extends Action
++{
+hunk ./actions/replies.php 24
+-class RepliesAction extends StreamAction {
++class RepliesAction extends StreamAction
++{
+hunk ./actions/repliesrss.php 26
+-class RepliesrssAction extends Rss10Action {
++class RepliesrssAction extends Rss10Action
++{
+hunk ./actions/requesttoken.php 24
+-class RequesttokenAction extends Action {
++class RequesttokenAction extends Action
++{
+hunk ./actions/showfavorites.php 24
+-class ShowfavoritesAction extends StreamAction {
++class ShowfavoritesAction extends StreamAction
++{
+hunk ./actions/showmessage.php 24
+-class ShowmessageAction extends MailboxAction {
++class ShowmessageAction extends MailboxAction
++{
+hunk ./actions/shownotice.php 24
+-class ShownoticeAction extends StreamAction {
++class ShownoticeAction extends StreamAction
++{
+hunk ./actions/showstream.php 27
+-class ShowstreamAction extends StreamAction {
++class ShowstreamAction extends StreamAction
++{
+hunk ./actions/showstream.php 453
+-class ProfileNoticeList extends NoticeList {
++class ProfileNoticeList extends NoticeList
++{
+hunk ./actions/showstream.php 461
+-class ProfileNoticeListItem extends NoticeListItem {
++class ProfileNoticeListItem extends NoticeListItem
++{
+hunk ./actions/smssettings.php 25
+-class SmssettingsAction extends EmailsettingsAction {
++class SmssettingsAction extends EmailsettingsAction
++{
+hunk ./actions/subedit.php 22
+-class SubeditAction extends Action {
++class SubeditAction extends Action
++{
+hunk ./actions/subscribe.php 22
+-class SubscribeAction extends Action {
++class SubscribeAction extends Action
++{
+hunk ./actions/subscribers.php 24
+-class SubscribersAction extends GalleryAction {
++class SubscribersAction extends GalleryAction
++{
+hunk ./actions/subscribers.php 63
+-class SubscribersList extends ProfileList {
++class SubscribersList extends ProfileList
++{
+hunk ./actions/subscriptions.php 24
+-class SubscriptionsAction extends GalleryAction {
++class SubscriptionsAction extends GalleryAction
++{
+hunk ./actions/subscriptions.php 63
+-class SubscriptionsList extends ProfileList {
++class SubscriptionsList extends ProfileList
++{
+hunk ./actions/sup.php 22
+-class SupAction extends Action {
++class SupAction extends Action
++{
+hunk ./actions/tag.php 25
+-class TagAction extends StreamAction {
++class TagAction extends StreamAction
++{
+hunk ./actions/tagother.php 24
+-class TagotherAction extends Action {
++class TagotherAction extends Action
++{
+hunk ./actions/tagrss.php 26
+-class TagrssAction extends Rss10Action {
++class TagrssAction extends Rss10Action
++{
+hunk ./actions/twitapiaccount.php 24
+-class TwitapiaccountAction extends TwitterapiAction {
++class TwitapiaccountAction extends TwitterapiAction
++{
+hunk ./actions/twitapiblocks.php 24
+-class TwitapiblocksAction extends TwitterapiAction {
++class TwitapiblocksAction extends TwitterapiAction
++{
+hunk ./actions/twitapidirect_messages.php 24
+-class Twitapidirect_messagesAction extends TwitterapiAction {
++class Twitapidirect_messagesAction extends TwitterapiAction
++{
+hunk ./actions/twitapifavorites.php 24
+-class TwitapifavoritesAction extends TwitterapiAction {
++class TwitapifavoritesAction extends TwitterapiAction
++{
+hunk ./actions/twitapifriendships.php 24
+-class TwitapifriendshipsAction extends TwitterapiAction {
++class TwitapifriendshipsAction extends TwitterapiAction
++{
+hunk ./actions/twitapihelp.php 24
+-class TwitapihelpAction extends TwitterapiAction {
++class TwitapihelpAction extends TwitterapiAction
++{
+hunk ./actions/twitapinotifications.php 25
+-class TwitapinotificationsAction extends TwitterapiAction {
++class TwitapinotificationsAction extends TwitterapiAction
++{
+hunk ./actions/twitapistatuses.php 24
+-class TwitapistatusesAction extends TwitterapiAction {
++class TwitapistatusesAction extends TwitterapiAction
++{
+hunk ./actions/twitapiusers.php 24
+-class TwitapiusersAction extends TwitterapiAction {
++class TwitapiusersAction extends TwitterapiAction
++{
+hunk ./actions/twittersettings.php 26
+-class TwittersettingsAction extends SettingsAction {
++class TwittersettingsAction extends SettingsAction
++{
+hunk ./actions/unblock.php 22
+-class UnblockAction extends Action {
++class UnblockAction extends Action
++{
+hunk ./actions/unsubscribe.php 20
+-class UnsubscribeAction extends Action {
++class UnsubscribeAction extends Action
++{
+hunk ./actions/updateprofile.php 24
+-class UpdateprofileAction extends Action {
++class UpdateprofileAction extends Action
++{
+hunk ./actions/userauthorization.php 25
+-class UserauthorizationAction extends Action {
++class UserauthorizationAction extends Action
++{
+hunk ./actions/userbyid.php 22
+-class UserbyidAction extends Action {
++class UserbyidAction extends Action
++{
+hunk ./actions/userrss.php 26
+-class UserrssAction extends Rss10Action {
++class UserrssAction extends Rss10Action
++{
+hunk ./actions/xrds.php 24
+-class XrdsAction extends Action {
++class XrdsAction extends Action
++{
+hunk ./classes/Channel.php 22
+-class Channel {
++class Channel
++{
+hunk ./classes/Channel.php 51
+-class XMPPChannel extends Channel {
++class XMPPChannel extends Channel
++{
+hunk ./classes/Channel.php 109
+-class WebChannel extends Channel {
++class WebChannel extends Channel
++{
+hunk ./classes/Channel.php 144
+-class AjaxWebChannel extends WebChannel {
++class AjaxWebChannel extends WebChannel
++{
+hunk ./classes/Channel.php 173
+-class MailChannel extends Channel {
++class MailChannel extends Channel
++{
+hunk ./classes/Command.php 24
+-class Command {
++class Command
++{
+hunk ./classes/Command.php 40
+-class UnimplementedCommand extends Command {
++class UnimplementedCommand extends Command
++{
+hunk ./classes/Command.php 48
+-class TrackingCommand extends UnimplementedCommand {
++class TrackingCommand extends UnimplementedCommand
++{
+hunk ./classes/Command.php 52
+-class TrackOffCommand extends UnimplementedCommand {
++class TrackOffCommand extends UnimplementedCommand
++{
+hunk ./classes/Command.php 56
+-class TrackCommand extends UnimplementedCommand {
++class TrackCommand extends UnimplementedCommand
++{
+hunk ./classes/Command.php 66
+-class UntrackCommand extends UnimplementedCommand {
++class UntrackCommand extends UnimplementedCommand
++{
+hunk ./classes/Command.php 76
+-class NudgeCommand extends UnimplementedCommand {
++class NudgeCommand extends UnimplementedCommand
++{
+hunk ./classes/Command.php 86
+-class InviteCommand extends UnimplementedCommand {
++class InviteCommand extends UnimplementedCommand
++{
+hunk ./classes/Command.php 96
+-class StatsCommand extends Command {
++class StatsCommand extends Command
++{
+hunk ./classes/Command.php 122
+-class FavCommand extends Command {
++class FavCommand extends Command
++{
+hunk ./classes/Command.php 170
+-class WhoisCommand extends Command {
++class WhoisCommand extends Command
++{
+hunk ./classes/Command.php 207
+-class MessageCommand extends Command {
++class MessageCommand extends Command
++{
+hunk ./classes/Command.php 252
+-class GetCommand extends Command {
++class GetCommand extends Command
++{
+hunk ./classes/Command.php 285
+-class SubCommand extends Command {
++class SubCommand extends Command
++{
+hunk ./classes/Command.php 314
+-class UnsubCommand extends Command {
++class UnsubCommand extends Command
++{
+hunk ./classes/Command.php 342
+-class OffCommand extends Command {
++class OffCommand extends Command
++{
+hunk ./classes/Command.php 364
+-class OnCommand extends Command {
++class OnCommand extends Command
++{
+hunk ./classes/Command.php 387
+-class HelpCommand extends Command {
++class HelpCommand extends Command
++{
+hunk ./classes/CommandInterpreter.php 24
+-class CommandInterpreter {
++class CommandInterpreter
++{
+hunk ./classes/NoticeWrapper.php 24
+-class NoticeWrapper extends Notice {
++class NoticeWrapper extends Notice
++{
+hunk ./lib/Shorturl_api.php 22
+-class ShortUrlApi {
++class ShortUrlApi
++{
+hunk ./lib/Shorturl_api.php 73
+-class LilUrl extends ShortUrlApi {
++class LilUrl extends ShortUrlApi
++{
+hunk ./lib/Shorturl_api.php 93
+-class PtitUrl extends ShortUrlApi {
++class PtitUrl extends ShortUrlApi
++{
+hunk ./lib/Shorturl_api.php 112
+-class TightUrl extends ShortUrlApi {
++class TightUrl extends ShortUrlApi
++{
+hunk ./lib/deleteaction.php 22
+-class DeleteAction extends Action {
++class DeleteAction extends Action
++{
+hunk ./lib/facebookaction.php 24
+-class FacebookAction extends Action {
++class FacebookAction extends Action
++{
+hunk ./lib/oauthstore.php 24
+-class LaconicaOAuthDataStore extends OAuthDataStore {
++class LaconicaOAuthDataStore extends OAuthDataStore
++{
+hunk ./lib/oauthstore.php 27
+- # We keep a record of who's contacted us
++ // We keep a record of who's contacted us
+hunk ./lib/oauthstore.php 79
+- $t->type = 0; # request
+- $t->state = 0; # unauthorized
++ $t->type = 0; // request
++ $t->state = 0; // unauthorized
+hunk ./lib/oauthstore.php 89
+- # defined in OAuthDataStore, but not implemented anywhere
++ // defined in OAuthDataStore, but not implemented anywhere
hunk ./lib/oauthstore.php 102
-- if ($rt->find(TRUE) && $rt->state == 1) { # authorized
-+ if ($rt->find(true) && $rt->state == 1) { # authorized
-hunk ./lib/omb.php 142
-- $posted[$rp->postnoticeurl] = TRUE;
-+ $posted[$rp->postnoticeurl] = true;
-hunk ./lib/omb.php 211
-- common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
-+ common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
-hunk ./lib/omb.php 244
-- $updated[$rp->updateprofileurl] = TRUE;
-+ $updated[$rp->updateprofileurl] = true;
-hunk ./lib/omb.php 296
-- common_debug('Got HTTP result "'.print_r($result,TRUE).'"', __FILE__);
-+ common_debug('Got HTTP result "'.print_r($result,true).'"', __FILE__);
-hunk ./lib/util.php 439
--function common_dropdown($id, $label, $content, $instructions=null, $blank_select=FALSE, $selected=null)
-+function common_dropdown($id, $label, $content, $instructions=null, $blank_select=false, $selected=null)
-hunk ./lib/util.php 1021
-- if ($recipient->find(TRUE)) {
-+ if ($recipient->find(true)) {
-hunk ./lib/util.php 1031
-- if ($recipient->find(TRUE)) {
-+ if ($recipient->find(true)) {
-hunk ./lib/util.php 2261
-- common_dropdown('to', _('To'), $mutual, null, FALSE, $to->id);
-+ common_dropdown('to', _('To'), $mutual, null, false, $to->id);
-hunk ./scripts/sitemap.php 334
-- if (is_writable($output_dir) === FALSE) {
-+ if (is_writable($output_dir) === false) {
-hunk ./scripts/sitemap.php 369
-- if (($fh_out = fopen($path,'w')) === FALSE) {
-+ if (($fh_out = fopen($path,'w')) === false) {
-hunk ./scripts/sitemap.php 373
-- if (fwrite($fh_out, $data) === FALSE) {
-+ if (fwrite($fh_out, $data) === false) {
-hunk ./scripts/xmppconfirmhandler.php 113
-- if ($confirm->find(TRUE)) {
-+ if ($confirm->find(true)) {
+- $rt->type = 0; # request
+- if ($rt->find(true) && $rt->state == 1) { # authorized
++ $rt->type = 0; // request
++ if ($rt->find(true) && $rt->state == 1) { // authorized
+hunk ./lib/oauthstore.php 109
+- $at->type = 1; # access
++ $at->type = 1; // access
+hunk ./lib/oauthstore.php 117
+- # burn the old one
++ // burn the old one
+hunk ./lib/oauthstore.php 119
+- $rt->state = 2; # used
++ $rt->state = 2; // used
+hunk ./lib/oauthstore.php 124
+- # Update subscription
+- # XXX: mixing levels here
++ // Update subscription
++ // XXX: mixing levels here
+hunk ./lib/oauthstore.php 146
+- # defined in OAuthDataStore, but not implemented anywhere
++ // defined in OAuthDataStore, but not implemented anywhere
+hunk ./lib/personal.php 22
+-class PersonalAction extends Action {
++class PersonalAction extends Action
++{
+hunk ./lib/profilelist.php 25
+-class ProfileList {
++class ProfileList
++{
+hunk ./lib/queuehandler.php 28
+-class QueueHandler extends Daemon {
++class QueueHandler extends Daemon
++{
+hunk ./lib/rssaction.php 24
+-class Rss10Action extends Action {
++class Rss10Action extends Action
++{
+hunk ./lib/search_engines.php 22
+-class SearchEngine {
++class SearchEngine
++{
+hunk ./lib/search_engines.php 49
+-class SphinxSearch extends SearchEngine {
++class SphinxSearch extends SearchEngine
++{
+hunk ./lib/search_engines.php 108
+-class MySQLSearch extends SearchEngine {
++class MySQLSearch extends SearchEngine
++{
+hunk ./lib/search_engines.php 121
+-class PGSearch extends SearchEngine {
++class PGSearch extends SearchEngine
++{
+hunk ./lib/searchaction.php 22
+-class SearchAction extends Action {
++class SearchAction extends Action
++{
+hunk ./lib/settingsaction.php 22
+-class SettingsAction extends Action {
++class SettingsAction extends Action
++{
+hunk ./lib/stream.php 25
+-class StreamAction extends PersonalAction {
++class StreamAction extends PersonalAction
++{
+hunk ./lib/twitterapi.php 22
+-class TwitterapiAction extends Action {
++class TwitterapiAction extends Action
++{
+hunk ./lib/xmppqueuehandler.php 31
+-class XmppQueueHandler extends QueueHandler {
++class XmppQueueHandler extends QueueHandler
++{
+hunk ./scripts/enjitqueuehandler.php 36
+-class EnjitQueueHandler extends QueueHandler {
++class EnjitQueueHandler extends QueueHandler
++{
+hunk ./scripts/jabberqueuehandler.php 36
+-class JabberQueueHandler extends XmppQueueHandler {
++class JabberQueueHandler extends XmppQueueHandler
++{
+hunk ./scripts/maildaemon.php 37
+-class MailerDaemon {
++class MailerDaemon
++{
+hunk ./scripts/ombqueuehandler.php 36
+-class OmbQueueHandler extends QueueHandler {
++class OmbQueueHandler extends QueueHandler
++{
+hunk ./scripts/publicqueuehandler.php 36
+-class PublicQueueHandler extends XmppQueueHandler {
++class PublicQueueHandler extends XmppQueueHandler
++{
+hunk ./scripts/smsqueuehandler.php 36
+-class SmsQueueHandler extends QueueHandler {
++class SmsQueueHandler extends QueueHandler
++{
+hunk ./scripts/xmppconfirmhandler.php 38
+-class XmppConfirmHandler extends XmppQueueHandler {
++class XmppConfirmHandler extends XmppQueueHandler
++{
+hunk ./scripts/xmppdaemon.php 40
+-class XMPPDaemon extends Daemon {
++class XMPPDaemon extends Daemon
++{
require_once(INSTALLDIR.'/lib/omb.php');
-class AccesstokenAction extends Action {
+class AccesstokenAction extends Action
+{
function handle($args)
{
parent::handle($args);
require_once(INSTALLDIR.'/actions/showstream.php');
-class AllAction extends StreamAction {
+class AllAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class AllrssAction extends Rss10Action {
+class AllrssAction extends Rss10Action
+{
var $user = null;
if (!defined('LACONICA')) { exit(1); }
-class ApiAction extends Action {
+class ApiAction extends Action
+{
var $user;
var $content_type;
if (!defined('LACONICA')) { exit(1); }
-class AvatarbynicknameAction extends Action {
+class AvatarbynicknameAction extends Action
+{
function handle($args)
{
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
-class BlockAction extends Action {
+class BlockAction extends Action
+{
var $profile = null;
if (!defined('LACONICA')) { exit(1); }
-class ConfirmaddressAction extends Action {
+class ConfirmaddressAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/deleteaction.php');
-class DeletenoticeAction extends DeleteAction {
+class DeletenoticeAction extends DeleteAction
+{
function handle($args)
{
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
-class DeleteprofileAction extends Action {
+class DeleteprofileAction extends Action
+{
function handle($args)
{
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
-class DisfavorAction extends Action {
+class DisfavorAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class DocAction extends Action {
+class DocAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class EmailsettingsAction extends SettingsAction {
+class EmailsettingsAction extends SettingsAction
+{
function get_instructions()
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebookhomeAction extends FacebookAction {
+class FacebookhomeAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebookinviteAction extends FacebookAction {
+class FacebookinviteAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebookremoveAction extends FacebookAction {
+class FacebookremoveAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/facebookaction.php');
-class FacebooksettingsAction extends FacebookAction {
+class FacebooksettingsAction extends FacebookAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/mail.php');
-class FavorAction extends Action {
+class FavorAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/stream.php');
-class FavoritedAction extends StreamAction {
+class FavoritedAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class FavoritesrssAction extends Rss10Action {
+class FavoritesrssAction extends Rss10Action
+{
var $user = null;
require_once(INSTALLDIR.'/lib/stream.php');
require_once(INSTALLDIR.'/lib/profilelist.php');
-class FeaturedAction extends StreamAction {
+class FeaturedAction extends StreamAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class FinishaddopenidAction extends Action {
+class FinishaddopenidAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class FinishimmediateAction extends Action {
+class FinishimmediateAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class FinishopenidloginAction extends Action {
+class FinishopenidloginAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class FinishremotesubscribeAction extends Action {
+class FinishremotesubscribeAction extends Action
+{
function handle($args)
{
define('LISTENEE', -1);
define('BOTH', 0);
-class FoafAction extends Action {
+class FoafAction extends Action
+{
function is_readonly()
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
require_once(INSTALLDIR.'/lib/jabber.php');
-class ImsettingsAction extends SettingsAction {
+class ImsettingsAction extends SettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class InviteAction extends Action {
+class InviteAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class LoginAction extends Action {
+class LoginAction extends Action
+{
function is_readonly()
{
require_once(INSTALLDIR.'/lib/openid.php');
-class LogoutAction extends Action {
+class LogoutAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class MicrosummaryAction extends Action {
+class MicrosummaryAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class NewmessageAction extends Action {
+class NewmessageAction extends Action
+{
function handle($args)
{
require_once INSTALLDIR . '/lib/noticelist.php';
-class NewnoticeAction extends Action {
+class NewnoticeAction extends Action
+{
function handle($args)
{
# XXX common parent for people and content search?
-class NoticesearchAction extends SearchAction {
+class NoticesearchAction extends SearchAction
+{
function get_instructions()
{
// Formatting of RSS handled by Rss10Action
-class NoticesearchrssAction extends Rss10Action {
+class NoticesearchrssAction extends Rss10Action
+{
function init()
{
require_once(INSTALLDIR.'/lib/mail.php');
-class NudgeAction extends Action {
+class NudgeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/openid.php');
-class OpenidloginAction extends Action {
+class OpenidloginAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
require_once(INSTALLDIR.'/lib/openid.php');
-class OpenidsettingsAction extends SettingsAction {
+class OpenidsettingsAction extends SettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class OpensearchAction extends Action {
+class OpensearchAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class OthersettingsAction extends SettingsAction {
+class OthersettingsAction extends SettingsAction
+{
function get_instructions()
{
require_once(INSTALLDIR.'/lib/searchaction.php');
require_once(INSTALLDIR.'/lib/profilelist.php');
-class PeoplesearchAction extends SearchAction {
+class PeoplesearchAction extends SearchAction
+{
function get_instructions()
{
}
}
-class PeopleSearchResults extends ProfileList {
+class PeopleSearchResults extends ProfileList
+{
var $terms = null;
var $pattern = null;
require_once(INSTALLDIR.'/lib/profilelist.php');
-class PeopletagAction extends Action {
+class PeopletagAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class PostnoticeAction extends Action {
+class PostnoticeAction extends Action
+{
function handle($args)
{
parent::handle($args);
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class ProfilesettingsAction extends SettingsAction {
+class ProfilesettingsAction extends SettingsAction
+{
function get_instructions()
{
require_once(INSTALLDIR.'/lib/stream.php');
-class PublicAction extends StreamAction {
+class PublicAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class PublicrssAction extends Rss10Action {
+class PublicrssAction extends Rss10Action
+{
function init()
{
# XXX: factor out similarities with XrdsAction
-class PublicxrdsAction extends Action {
+class PublicxrdsAction extends Action
+{
function is_readonly()
{
define(MAX_RECOVERY_TIME, 24 * 60 * 60);
-class RecoverpasswordAction extends Action {
+class RecoverpasswordAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class RegisterAction extends Action {
+class RegisterAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class RemotesubscribeAction extends Action {
+class RemotesubscribeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/actions/showstream.php');
-class RepliesAction extends StreamAction {
+class RepliesAction extends StreamAction
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class RepliesrssAction extends Rss10Action {
+class RepliesrssAction extends Rss10Action
+{
var $user = null;
require_once(INSTALLDIR.'/lib/omb.php');
-class RequesttokenAction extends Action {
+class RequesttokenAction extends Action
+{
function is_readonly()
{
require_once(INSTALLDIR.'/actions/showstream.php');
-class ShowfavoritesAction extends StreamAction {
+class ShowfavoritesAction extends StreamAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/mailbox.php');
-class ShowmessageAction extends MailboxAction {
+class ShowmessageAction extends MailboxAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/stream.php');
-class ShownoticeAction extends StreamAction {
+class ShownoticeAction extends StreamAction
+{
var $notice = null;
var $profile = null;
define('SUBSCRIPTIONS_PER_ROW', 4);
define('SUBSCRIPTIONS', 80);
-class ShowstreamAction extends StreamAction {
+class ShowstreamAction extends StreamAction
+{
function handle($args)
{
# We don't show the author for a profile, since we already know who it is!
-class ProfileNoticeList extends NoticeList {
+class ProfileNoticeList extends NoticeList
+{
function newListItem($notice)
{
return new ProfileNoticeListItem($notice);
}
}
-class ProfileNoticeListItem extends NoticeListItem {
+class ProfileNoticeListItem extends NoticeListItem
+{
function showAuthor()
{
return;
require_once(INSTALLDIR.'/lib/settingsaction.php');
require_once(INSTALLDIR.'/actions/emailsettings.php');
-class SmssettingsAction extends EmailsettingsAction {
+class SmssettingsAction extends EmailsettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class SubeditAction extends Action {
+class SubeditAction extends Action
+{
var $profile = null;
if (!defined('LACONICA')) { exit(1); }
-class SubscribeAction extends Action {
+class SubscribeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/gallery.php');
-class SubscribersAction extends GalleryAction {
+class SubscribersAction extends GalleryAction
+{
function gallery_type()
{
}
}
-class SubscribersList extends ProfileList {
+class SubscribersList extends ProfileList
+{
function show_owner_controls($profile)
{
common_block_form($profile, array('action' => 'subscribers',
require_once(INSTALLDIR.'/lib/gallery.php');
-class SubscriptionsAction extends GalleryAction {
+class SubscriptionsAction extends GalleryAction
+{
function gallery_type()
{
}
}
-class SubscriptionsList extends ProfileList {
+class SubscriptionsList extends ProfileList
+{
function show_owner_controls($profile)
{
if (!defined('LACONICA')) { exit(1); }
-class SupAction extends Action {
+class SupAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/actions/showstream.php');
define('TAGS_PER_PAGE', 100);
-class TagAction extends StreamAction {
+class TagAction extends StreamAction
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/settingsaction.php');
-class TagotherAction extends Action {
+class TagotherAction extends Action
+{
function handle($args)
{
// Formatting of RSS handled by Rss10Action
-class TagrssAction extends Rss10Action {
+class TagrssAction extends Rss10Action
+{
function init()
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapiaccountAction extends TwitterapiAction {
+class TwitapiaccountAction extends TwitterapiAction
+{
function verify_credentials($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapiblocksAction extends TwitterapiAction {
+class TwitapiblocksAction extends TwitterapiAction
+{
function create($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class Twitapidirect_messagesAction extends TwitterapiAction {
+class Twitapidirect_messagesAction extends TwitterapiAction
+{
function direct_messages($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapifavoritesAction extends TwitterapiAction {
+class TwitapifavoritesAction extends TwitterapiAction
+{
function favorites($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapifriendshipsAction extends TwitterapiAction {
+class TwitapifriendshipsAction extends TwitterapiAction
+{
function create($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapihelpAction extends TwitterapiAction {
+class TwitapihelpAction extends TwitterapiAction
+{
/* Returns the string "ok" in the requested format with a 200 OK HTTP status code.
* URL:http://identi.ca/api/help/test.format
require_once(INSTALLDIR.'/lib/twitterapi.php');
# This naming convention looks real sick
-class TwitapinotificationsAction extends TwitterapiAction {
+class TwitapinotificationsAction extends TwitterapiAction
+{
function follow($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapistatusesAction extends TwitterapiAction {
+class TwitapistatusesAction extends TwitterapiAction
+{
function public_timeline($args, $apidata)
{
require_once(INSTALLDIR.'/lib/twitterapi.php');
-class TwitapiusersAction extends TwitterapiAction {
+class TwitapiusersAction extends TwitterapiAction
+{
function show($args, $apidata)
{
define('SUBSCRIPTIONS', 80);
-class TwittersettingsAction extends SettingsAction {
+class TwittersettingsAction extends SettingsAction
+{
function get_instructions()
{
if (!defined('LACONICA')) { exit(1); }
-class UnblockAction extends Action {
+class UnblockAction extends Action
+{
var $profile = null;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class UnsubscribeAction extends Action {
+class UnsubscribeAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class UpdateprofileAction extends Action {
+class UpdateprofileAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
define('TIMESTAMP_THRESHOLD', 300);
-class UserauthorizationAction extends Action {
+class UserauthorizationAction extends Action
+{
function handle($args)
{
if (!defined('LACONICA')) { exit(1); }
-class UserbyidAction extends Action {
+class UserbyidAction extends Action
+{
function is_readonly()
{
// Formatting of RSS handled by Rss10Action
-class UserrssAction extends Rss10Action {
+class UserrssAction extends Rss10Action
+{
var $user = null;
require_once(INSTALLDIR.'/lib/omb.php');
-class XrdsAction extends Action {
+class XrdsAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class Channel {
+class Channel
+{
function on($user)
{
}
}
-class XMPPChannel extends Channel {
+class XMPPChannel extends Channel
+{
var $conn = null;
}
-class WebChannel extends Channel {
+class WebChannel extends Channel
+{
function source()
{
}
-class AjaxWebChannel extends WebChannel {
+class AjaxWebChannel extends WebChannel
+{
function output($user, $text)
{
}
-class MailChannel extends Channel {
+class MailChannel extends Channel
+{
var $addr = null;
require_once(INSTALLDIR.'/classes/Channel.php');
-class Command {
+class Command
+{
var $user = null;
}
}
-class UnimplementedCommand extends Command {
+class UnimplementedCommand extends Command
+{
function execute($channel)
{
$channel->error($this->user, _("Sorry, this command is not yet implemented."));
}
}
-class TrackingCommand extends UnimplementedCommand {
+class TrackingCommand extends UnimplementedCommand
+{
}
-class TrackOffCommand extends UnimplementedCommand {
+class TrackOffCommand extends UnimplementedCommand
+{
}
-class TrackCommand extends UnimplementedCommand {
+class TrackCommand extends UnimplementedCommand
+{
var $word = null;
function __construct($user, $word)
{
}
}
-class UntrackCommand extends UnimplementedCommand {
+class UntrackCommand extends UnimplementedCommand
+{
var $word = null;
function __construct($user, $word)
{
}
}
-class NudgeCommand extends UnimplementedCommand {
+class NudgeCommand extends UnimplementedCommand
+{
var $other = null;
function __construct($user, $other)
{
}
}
-class InviteCommand extends UnimplementedCommand {
+class InviteCommand extends UnimplementedCommand
+{
var $other = null;
function __construct($user, $other)
{
}
}
-class StatsCommand extends Command {
+class StatsCommand extends Command
+{
function execute($channel)
{
}
}
-class FavCommand extends Command {
+class FavCommand extends Command
+{
var $other = null;
}
}
-class WhoisCommand extends Command {
+class WhoisCommand extends Command
+{
var $other = null;
function __construct($user, $other)
{
}
}
-class MessageCommand extends Command {
+class MessageCommand extends Command
+{
var $other = null;
var $text = null;
function __construct($user, $other, $text)
}
}
-class GetCommand extends Command {
+class GetCommand extends Command
+{
var $other = null;
}
}
-class SubCommand extends Command {
+class SubCommand extends Command
+{
var $other = null;
}
}
-class UnsubCommand extends Command {
+class UnsubCommand extends Command
+{
var $other = null;
}
}
-class OffCommand extends Command {
+class OffCommand extends Command
+{
var $other = null;
function __construct($user, $other=null)
{
}
}
-class OnCommand extends Command {
+class OnCommand extends Command
+{
var $other = null;
function __construct($user, $other=null)
{
}
}
-class HelpCommand extends Command {
+class HelpCommand extends Command
+{
function execute($channel)
{
$channel->output($this->user,
require_once(INSTALLDIR.'/classes/Command.php');
-class CommandInterpreter {
+class CommandInterpreter
+{
function handle_command($user, $text)
{
require_once(INSTALLDIR.'/classes/Notice.php');
-class NoticeWrapper extends Notice {
+class NoticeWrapper extends Notice
+{
public $id; // int(4) primary_key not_null
public $profile_id; // int(4) not_null
if (!defined('LACONICA')) { exit(1); }
-class ShortUrlApi {
+class ShortUrlApi
+{
protected $service_url;
function __construct($service_url)
}
}
-class LilUrl extends ShortUrlApi {
+class LilUrl extends ShortUrlApi
+{
function __construct()
{
parent::__construct('http://ur1.ca/');
}
-class PtitUrl extends ShortUrlApi {
+class PtitUrl extends ShortUrlApi
+{
function __construct()
{
parent::__construct('http://ptiturl.com/?creer=oui&action=Reduire&url=');
}
}
-class TightUrl extends ShortUrlApi {
+class TightUrl extends ShortUrlApi
+{
function __construct()
{
parent::__construct('http://2tu.us/?save=y&url=');
if (!defined('LACONICA')) { exit(1); }
-class DeleteAction extends Action {
+class DeleteAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/extlib/facebook/facebook.php');
-class FacebookAction extends Action {
+class FacebookAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/omb.php');
-class LaconicaOAuthDataStore extends OAuthDataStore {
+class LaconicaOAuthDataStore extends OAuthDataStore
+{
- # We keep a record of who's contacted us
+ // We keep a record of who's contacted us
function lookup_consumer($consumer_key)
{
$t->consumer_key = $consumer->key;
$t->tok = common_good_rand(16);
$t->secret = common_good_rand(16);
- $t->type = 0; # request
- $t->state = 0; # unauthorized
+ $t->type = 0; // request
+ $t->state = 0; // unauthorized
$t->created = DB_DataObject_Cast::dateTime();
if (!$t->insert()) {
return null;
}
}
- # defined in OAuthDataStore, but not implemented anywhere
+ // defined in OAuthDataStore, but not implemented anywhere
function fetch_request_token($consumer)
{
$rt = new Token();
$rt->consumer_key = $consumer->key;
$rt->tok = $token->key;
- $rt->type = 0; # request
- if ($rt->find(true) && $rt->state == 1) { # authorized
+ $rt->type = 0; // request
+ if ($rt->find(true) && $rt->state == 1) { // authorized
common_debug('request token found.', __FILE__);
$at = new Token();
$at->consumer_key = $consumer->key;
$at->tok = common_good_rand(16);
$at->secret = common_good_rand(16);
- $at->type = 1; # access
+ $at->type = 1; // access
$at->created = DB_DataObject_Cast::dateTime();
if (!$at->insert()) {
$e = $at->_lastError;
return null;
} else {
common_debug('access token "'.$at->tok.'" inserted', __FILE__);
- # burn the old one
+ // burn the old one
$orig_rt = clone($rt);
- $rt->state = 2; # used
+ $rt->state = 2; // used
if (!$rt->update($orig_rt)) {
return null;
}
common_debug('request token "'.$rt->tok.'" updated', __FILE__);
- # Update subscription
- # XXX: mixing levels here
+ // Update subscription
+ // XXX: mixing levels here
$sub = Subscription::staticGet('token', $rt->tok);
if (!$sub) {
return null;
}
}
- # defined in OAuthDataStore, but not implemented anywhere
+ // defined in OAuthDataStore, but not implemented anywhere
function fetch_access_token($consumer)
{
if (!defined('LACONICA')) { exit(1); }
-class PersonalAction extends Action {
+class PersonalAction extends Action
+{
function is_readonly()
{
define('PROFILES_PER_PAGE', 20);
-class ProfileList {
+class ProfileList
+{
var $profile = null;
var $owner = null;
require_once(INSTALLDIR.'/classes/Queue_item.php');
require_once(INSTALLDIR.'/classes/Notice.php');
-class QueueHandler extends Daemon {
+class QueueHandler extends Daemon
+{
var $_id = 'generic';
define('DEFAULT_RSS_LIMIT', 48);
-class Rss10Action extends Action {
+class Rss10Action extends Action
+{
# This will contain the details of each feed item's author and be used to generate SIOC data.
var $creators = array();
if (!defined('LACONICA')) { exit(1); }
-class SearchEngine {
+class SearchEngine
+{
protected $target;
protected $table;
}
}
-class SphinxSearch extends SearchEngine {
+class SphinxSearch extends SearchEngine
+{
private $sphinx;
private $connected;
}
}
-class MySQLSearch extends SearchEngine {
+class MySQLSearch extends SearchEngine
+{
function query($q)
{
if ('identica_people' === $this->table)
}
}
-class PGSearch extends SearchEngine {
+class PGSearch extends SearchEngine
+{
function query($q)
{
if ('identica_people' === $this->table)
if (!defined('LACONICA')) { exit(1); }
-class SearchAction extends Action {
+class SearchAction extends Action
+{
function is_readonly()
{
if (!defined('LACONICA')) { exit(1); }
-class SettingsAction extends Action {
+class SettingsAction extends Action
+{
function handle($args)
{
require_once(INSTALLDIR.'/lib/personal.php');
require_once(INSTALLDIR.'/lib/noticelist.php');
-class StreamAction extends PersonalAction {
+class StreamAction extends PersonalAction
+{
function public_views_menu()
{
if (!defined('LACONICA')) { exit(1); }
-class TwitterapiAction extends Action {
+class TwitterapiAction extends Action
+{
var $auth_user;
* superclass.
*/
-class XmppQueueHandler extends QueueHandler {
+class XmppQueueHandler extends QueueHandler
+{
function start()
{
set_error_handler('common_error_handler');
-class EnjitQueueHandler extends QueueHandler {
+class EnjitQueueHandler extends QueueHandler
+{
function transport()
{
set_error_handler('common_error_handler');
-class JabberQueueHandler extends XmppQueueHandler {
+class JabberQueueHandler extends XmppQueueHandler
+{
var $conn = null;
# FIXME: we use both Mail_mimeDecode and mailparse
# Need to move everything to mailparse
-class MailerDaemon {
+class MailerDaemon
+{
function __construct()
{
set_error_handler('common_error_handler');
-class OmbQueueHandler extends QueueHandler {
+class OmbQueueHandler extends QueueHandler
+{
function transport()
{
set_error_handler('common_error_handler');
-class PublicQueueHandler extends XmppQueueHandler {
+class PublicQueueHandler extends XmppQueueHandler
+{
function transport()
{
set_error_handler('common_error_handler');
-class SmsQueueHandler extends QueueHandler {
+class SmsQueueHandler extends QueueHandler
+{
function transport()
{
define('CLAIM_TIMEOUT', 1200);
-class XmppConfirmHandler extends XmppQueueHandler {
+class XmppConfirmHandler extends XmppQueueHandler
+{
var $_id = 'confirm';
# in jabber.php, which create a new XMPP class. A more elegant (?) solution
# might be to use make this a subclass of XMPP.
-class XMPPDaemon extends Daemon {
+class XMPPDaemon extends Daemon
+{
function XMPPDaemon($resource=null)
{