From f77d32f1994fc8cee50933800d7eb435bc908412 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 17 Jun 2010 12:58:19 -0400 Subject: [PATCH] First round of function parameter cleanups. This is a change to the API function signatures, so any app using the Ansel API may require refactoring. --- ansel/lib/Ansel.php | 77 +++---- ansel/lib/Api.php | 340 ++++++++++++++++------------- ansel/lib/Block/gallery.php | 10 +- ansel/lib/Block/my_galleries.php | 11 +- ansel/lib/Block/recent_comments.php | 17 +- ansel/lib/Block/recently_added.php | 6 +- ansel/lib/Block/recently_added_geodata.php | 2 +- ansel/lib/Gallery.php | 5 +- ansel/lib/GalleryMode/Date.php | 5 +- ansel/lib/GalleryMode/Normal.php | 31 +-- ansel/lib/ImageView.php | 6 +- ansel/lib/Storage.php | 81 ++++--- ansel/lib/View/List.php | 10 +- ansel/lib/Widget/OtherGalleries.php | 27 ++- ansel/perms.php | 6 +- ansel/rss.php | 17 +- ansel/scripts/recursive_import.php | 5 +- ansel/scripts/remote_import.php | 5 +- ansel/templates/gallery/gallery.inc | 4 +- ansel/templates/group/category.inc | 22 +- ansel/templates/group/owner.inc | 13 +- ansel/templates/view/gallery.inc | 2 +- ansel/templates/view/gallerylightbox.inc | 2 +- ansel/templates/view/results.inc | 2 +- ansel/templates/xppublish/list.inc | 2 +- 25 files changed, 401 insertions(+), 307 deletions(-) diff --git a/ansel/lib/Ansel.php b/ansel/lib/Ansel.php index db9684e91..1b1aac0d1 100644 --- a/ansel/lib/Ansel.php +++ b/ansel/lib/Ansel.php @@ -13,6 +13,10 @@ */ class Ansel { + /* Sort constants */ + const SORT_ASCENDING = 0; + const SORT_DESCENDING = 1; + /** * Build initial Ansel javascript object. * @@ -58,48 +62,45 @@ class Ansel * Return a string containing an