[gallery/gallery3] 41c186: #2035 - Centralize definitions of how thumb/resize...

GitHub <noreply-9UaJU3cA/F/[email protected]> Thu, 09 May 2013 23:19:51 -0700
Newsgroups gmane.comp.web.gallery.cvs
Message-ID <518c9187c170e_a9c589ddc80020@hookshot-fe2-pe1-prd.aws.github.net.mail>
  Branch: refs/heads/fix_2035
  Home:   https://github.com/gallery/gallery3
  Commit: 41c1861d4942c38bedcabc6896ec2a4eb64eaf75
      https://github.com/gallery/gallery3/commit/41c1861d4942c38bedcabc6896ec2a4eb64eaf75
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-03-14 (Thu, 14 Mar 2013)

  Changed paths:
    M modules/gallery/controllers/file_proxy.php
    M modules/gallery/helpers/data_rest.php
    M modules/gallery/helpers/item.php
    M modules/gallery/models/item.php
    M modules/gallery/tests/Item_Helper_Test.php
    M modules/gallery/tests/Item_Model_Test.php

  Log Message:
  -----------
  #2035 - Centralize definitions of how thumb/resize filenames are generated.
- added constants $album_image_name and $extention_changes to Item_Model.
- added _convert_name_by_size() and _get_mime_type_by_size() to Item_Model to process them.
- added thumb_mime_type() and resize_mime_type() to Item_Model.
- added _find_by_path() and made it a new way to constuct Item_Model.
- stripped item::find_by_path(), as it was revised and moved to Item_Model.
- revised data_rest to use new functions.
- revised file_proxy to use new functions.
- recast item::find_by_path unit tests as item model unit tests.
- removed find_by_path tests for png (now same as jpg case).

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may

__[ g a l l e r y - c h e c k i n s ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]