gnu-social/classes
mmn b33b40db45 Merge branch 'refactor-file-processNew' into 'nightly'
Refactor on File::processNew

The code was so involved there was even a comment asking for a refactor.

Now, File_redirection::where always returns a nice File_redirection
object instead of an array or string or nothing.  The object is
either one which already existed or else a new, unsaved object.

Instead of duplicating "does it exist" checks everywhere, do it in
File_redirection::where.  You either get what exists or something to save.

An unsaved File_redirection may be paired with an unsaved File.
You will want to save the File first (using ->saveFile()) and put the
id in File_redirection#file_id before saving.

See merge request !57
2015-11-20 17:50:01 +00:00
..
Attention.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Avatar.php ImageFile->resize now totally replaced with resizeTo 2015-03-12 20:47:07 +01:00
Config.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Confirm_address.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Consumer.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Conversation.php Incorrect use of DataObject type matching after ->find() 2015-09-04 20:35:11 +02:00
File.php Refactor on File::processNew 2015-11-02 05:15:08 +00:00
File_redirection.php Refactor on File::processNew 2015-11-02 05:15:08 +00:00
File_thumbnail.php Modernize File_thumbnail to use Managed_DataObject functions 2015-06-04 22:29:40 +02:00
File_to_post.php File-related functions not declared static 2015-06-07 10:01:28 +02:00
Foreign_link.php Exception handling regarding Foreign_link 2015-07-18 11:39:34 +02:00
Foreign_service.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Foreign_subscription.php staticGet for sub-Managed_DataObject classes now calls parent 2013-08-12 19:46:44 +02:00
Foreign_user.php TwitterBridge is closer to working again 2015-07-17 21:03:37 +02:00
GS_DataObject.php DB_DataObject delete function calls PEAR::isError directly, ignore E_STRICT 2015-06-06 20:01:03 +02:00
Group_alias.php Local_group and User are now assumed to be in same namespace 2013-10-17 01:27:01 +02:00
Group_block.php Minor typing stuff and syntax fixes 2013-11-02 17:28:11 +01: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 Some code aligning for consistency 2015-10-10 22:09:51 +02:00
Invitation.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Local_group.php Introducing TargetedRss10Action for simplifying RSS 1.0 2015-07-10 00:28:36 +02:00
Location_namespace.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Login_token.php Replace common_good_random with common_random_hexstr 2013-10-21 13:20:30 +02:00
Managed_DataObject.php Bookmarks are almost migrated 2015-10-12 17:48:23 +02:00
Memcached_DataObject.php Less redundant code. 2015-07-15 19:21:21 +02:00
Nonce.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Notice.php Make it clearer that we're handling group IDs 2015-11-08 23:31:45 +01:00
Notice_location.php Oops, forgot Notice_location PHP file 2015-09-04 22:30:33 +02:00
Notice_source.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Notice_tag.php Less redundant code, please 2015-06-21 01:37:29 +02:00
Oauth_application.php Add default icon to OAuth apps 2015-09-05 17:02:17 -04:00
Oauth_application_user.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Oauth_token_association.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Old_school_prefs.php Updating all Memcached_DataObject extended classes to Managed_DataObject 2013-08-18 12:32:32 +02:00
Profile.php Can't use return-value in empty() 2015-10-04 22:31:07 +02:00
Profile_block.php Declaring some more static functions properly 2013-09-09 23:28:20 +02:00
Profile_list.php ShowprofiletagAction now extends ShowstreamAction 2015-09-27 23:46:30 +02:00
Profile_prefs.php Modernize Profile_prefs to use Managed_DataObject functions 2015-06-04 22:26:31 +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 ProfilesettingsAction and related stuff modernised 2015-07-17 12:20:11 +02:00
Profile_tag_subscription.php function delete in dataobjects now don't break strict syntax 2013-10-29 10:20:57 +01:00
Queue_item.php Don't retry unhandled transports in OpportunisticQM 2015-07-18 01:09:50 +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
Reply.php Introducing TargetedRss10Action for simplifying RSS 1.0 2015-07-10 00:28:36 +02:00
Safe_DataObject.php DB_DataObject recommends using ->tableName() 2015-06-06 19:35:10 +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 utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Status_network.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Status_network_tag.php DB_DataObject recommends using ->tableName() 2015-06-06 19:35:10 +02:00
Subscription.php Some code aligning for consistency 2015-10-10 22:09:51 +02:00
Subscription_queue.php define Subscription_queue::exists as static 2015-07-11 00:08:23 +02:00
Token.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
Unavailable_status_network.php Updating all Memcached_DataObject extended classes to Managed_DataObject 2013-08-18 12:32:32 +02:00
User.php Infinite loop on CLI initiated profile deletion for local users 2015-07-18 02:16:52 +02:00
User_group.php Add User_group::getObjectType 2015-10-29 20:11:57 -04:00
User_im_prefs.php Removing MicroID as well as simplifying profileaction 2015-07-14 16:52:20 +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 Fixed CHMOD + set error_reporting(0) in getvaliddaemons.php to avoid strict warnings in PHP +5.5 2014-08-24 13:12:44 +02:00
User_username.php utf8mb4 conversion on database with index adjusts 2015-02-12 18:18:55 +01:00
status_network.ini oops. really embarassing typo (that explains some weird behaviour) 2010-07-29 16:32:41 -04:00