gnu-social/classes
Mikael Nordfeldth a23c4aa236 Avatar resizing improvements and better code reuse
* getOriginal added to Avatar class
    This is a static function that retrieves the original avatar in a leaner
    way than Profile->getOriginalAvatar() did (see below).
    This will throw an Exception if there was none to be found.

* getProfileAvatars added to Avatar class
    This gets all Avatars from a profile and returns them in an array.

* newSize added to Avatar class
    This will scale an original avatar or throw an Exception (originally from
    Avatar::getOriginal) if one wasn't found.

* deleteFromProfile added to Avatar class
    Deletes all avatars for a Profile. This makes the code much smarter when
    removing all avatars from a user.
    Previously only specific, hardcoded (through constants) sizes would be
    deleted. If you ever changed lib/framework.php then many oddsized avatars
    would remain with the old method.

* Migrated Profile class to new Avatar::getOriginal support
    Profile class now uses Avatar::getOriginal through its own
    $this->getOriginalAvatar and thus remains backwards compatible.

* Updating stock GNU Social to use Avatar::getOriginal
    All places where core StatusNet code used the
    $profile->getOriginalAvatar, it will now useAvatar::getOriginal with
    proper error handling.

* Updated Profile class to use Avatar::newSize
    When doing setOriginal, the scaling will be done with the new method
    introduced in this merge.
    This also edits the _fillAvatar function to avoid adding NULL values to
    the array (which causes errors when attempting to access array entries as
    objects). See issue #3478 at http://status.net/open-source/issues/3478
2013-09-30 22:23:03 +02:00
..
Avatar.php Avatar resizing improvements and better code reuse 2013-09-30 22:23:03 +02:00
Config.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +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 Woops, forgot auto_increment (comes with 'serial') 2013-08-21 15:02: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 pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
File.php Stronger typing, require array where param array 2013-08-29 10:27:39 +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 pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Foreign_link.php Make better use of Subscription class 2013-09-19 17:29:05 +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 pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Group_inbox.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Group_join_queue.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Group_member.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +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 Shouldn't define static classes as abstract. 2013-09-21 18:53:18 +02:00
Memcached_DataObject.php Uncaught exception when no subscribers/subscriptions in ProfileList 2013-09-26 00:47:56 +02:00
Message.php newmessage (and Message class) fixed for FormAction 2013-09-02 11:05:30 +02:00
Nonce.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Notice.php Correct a logic-inverting typo in handling of replies to group-posts. 2013-09-29 23:14:00 +02:00
Notice_inbox.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +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 pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Oauth_application.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_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.php Avatar resizing improvements and better code reuse 2013-09-30 22:23:03 +02:00
Profile_block.php Declaring some more static functions properly 2013-09-09 23:28:20 +02:00
Profile_list.php Stronger typing, require array where param array 2013-08-29 10:27:39 +02:00
Profile_role.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Profile_tag.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Profile_tag_subscription.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Queue_item.php 8 chars was too little, 32 should be enough. 2013-09-18 01:21:53 +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 pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Safe_DataObject.php Stronger typing, require array where param array 2013-08-29 10:27:39 +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.php Stronger typing, require array where param array 2013-08-29 10:27:39 +02:00
Status_network_tag.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +02:00
Subscription.php Subscription "get by" functions now don't use ArrayWrappers 2013-09-21 18:38:14 +02:00
Subscription_queue.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +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.php Implemented WebFinger and replaced our XRD with PEAR XML_XRD 2013-09-30 22:04:52 +02:00
User_group.php Moved multiGet into Managed_DataObject 2013-08-29 10:38:11 +02:00
User_im_prefs.php pkeyGet is now static and more similar to getKV 2013-08-18 15:42:51 +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 maxNoticeLength test for url-shortening failed on maxContent==0 2013-09-25 22:48:32 +02:00
User_username.php IMPORTANT: Making prev. Memcached_DataObject working again with schemaDef 2013-08-21 09:48:42 +02:00
status_network.ini oops. really embarassing typo (that explains some weird behaviour) 2010-07-29 16:32:41 -04:00