Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

v2.9 | File | Uploads | Images 27 Jun 2016 10:32 #14094

  • admin
  • admin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Code improvement : Images, Files and Upload Classes

The php classes managing the files has been entirely rewritten.
It is now clean and consistent !
Now, only one helper file is handling all the work for upload, thumbs, :
HelperFile : (helpers/file.php)

The following files has been removed :

classes/file/file.php
Has been renamed in a helper, because it is a static class, so its place is in the helpers.


classes/file/upload.php
Has been merged inside HelperFile. It still does the same job with few improvements at the level of the caller.


classes/images.php
Has been totally removed and the work is left to the JImage native class of Joomla!
We don't need anymore with the actual version of Joomla!


classes/image/image.php
Has been removed because it was an empty class file.



A new important function appeared in the item controller:
updateFileField()
It manages the uploader call, manages the file / thumbs deletions and update the image value field in the database in only one static call.


CHECK YOUR FORKS if you have modified the deprecated classes.
(or build in Legacy 2.8.7)

Follow this short guide :
www.j-cook.pro/index.php/docs/versions/226-2-9
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.076 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started