gnu-social/classes
Mikael Nordfeldth 2a4dc77a63 The overloaded DB_DataObject function staticGet is now called getKV
I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV

   sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)

If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!

This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)

Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this change into consideration.
2013-08-18 13:13:56 +02:00
..
Avatar.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Config.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Confirm_address.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Consumer.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Conversation.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Deleted_notice.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Fave.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
File_oembed.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
File_redirection.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
File_thumbnail.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
File_to_post.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
File.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Foreign_link.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Foreign_service.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Foreign_subscription.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Foreign_user.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Group_alias.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Group_block.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Group_inbox.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Group_join_queue.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Group_member.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Inbox.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Invitation.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Local_group.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Location_namespace.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Login_token.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Managed_DataObject.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Memcached_DataObject.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Message.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Nonce.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Notice_inbox.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Notice_source.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Notice_tag.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Notice.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Oauth_application_user.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Oauth_application.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Oauth_token_association.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Old_school_prefs.php Updating all Memcached_DataObject extended classes to Managed_DataObject 2013-08-18 12:32:32 +02:00
Profile_block.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Profile_list.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Profile_role.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Profile_tag_subscription.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Profile_tag.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Profile.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Queue_item.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Related_group.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Remember_me.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Remote_profile.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Reply.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Safe_DataObject.php * i18n/L10n and translator documentation updates. 2010-09-28 23:42:18 +02:00
Schema_version.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Session.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Sms_carrier.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Status_network_tag.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
status_network.ini oops. really embarassing typo (that explains some weird behaviour) 2010-07-29 16:32:41 -04:00
Status_network.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Subscription_queue.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Subscription.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
Token.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Unavailable_status_network.php Updating all Memcached_DataObject extended classes to Managed_DataObject 2013-08-18 12:32:32 +02:00
User_group.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
User_im_prefs.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
User_location_prefs.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
User_urlshortener_prefs.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
User_username.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
User.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00