Use injector for Ansel_Storage.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 13 Jun 2010 22:18:33 +0000 (18:18 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 13 Jun 2010 22:18:33 +0000 (18:18 -0400)
commit04ce072847321ac9a2eed7f88ebdd23d96969e62
tree359e476e4de2362cba3ab87bfc78e75b57573bed
parentfc55a15165e63d151fdcadf78b80a15a7041f875
Use injector for Ansel_Storage.

Introduces a new Ansel_Config class for setting ansel config values that
might change during runtime, such as $scope.  The Ansel_Storage factory uses
Ansel_Config from the injector to return the proper storage scope. So, to
use a scope other than the default 'ansel' scope, you need to set it as:

$GLOBALS['injector']->getInstance('Ansel_Config')->set('scope', 'foo');
80 files changed:
ansel/disclamer.php
ansel/edit_dates.php
ansel/faces/claim.php
ansel/faces/custom.php
ansel/faces/gallery.php
ansel/faces/image.php
ansel/faces/name.php
ansel/faces/report.php
ansel/gallery.php
ansel/gallery/captions.php
ansel/gallery/delete.php
ansel/gallery/sort.php
ansel/group.php
ansel/image.php
ansel/img/download.php
ansel/img/ecard.php
ansel/img/full.php
ansel/img/index.php
ansel/img/mini.php
ansel/img/prettythumb.php
ansel/img/screen.php
ansel/img/thumb.php
ansel/img/upload.php
ansel/img/upload_preview.php
ansel/lib/Ajax/Imple/EditCaption.php
ansel/lib/Ajax/Imple/EditFaces.php
ansel/lib/Ajax/Imple/GallerySlugCheck.php
ansel/lib/Ajax/Imple/ImageSaveGeotag.php
ansel/lib/Ajax/Imple/LocationAutoCompleter.php
ansel/lib/Ajax/Imple/TagActions.php
ansel/lib/Ansel.php
ansel/lib/Api.php
ansel/lib/Application.php
ansel/lib/Block/gallery.php
ansel/lib/Block/my_galleries.php
ansel/lib/Block/random_photo.php
ansel/lib/Block/recent_comments.php
ansel/lib/Block/recently_added.php
ansel/lib/Block/recently_added_geodata.php
ansel/lib/Config.php [new file with mode: 0644]
ansel/lib/Faces/Base.php
ansel/lib/Gallery.php
ansel/lib/GalleryMode/Date.php
ansel/lib/GalleryMode/Normal.php
ansel/lib/Image.php
ansel/lib/ImageView.php
ansel/lib/ImageView/PolaroidThumb.php
ansel/lib/ImageView/PrettyThumb.php
ansel/lib/ImageView/ShadowSharpThumb.php
ansel/lib/Injector/Factory/Storage.php
ansel/lib/Storage.php
ansel/lib/Tags.php
ansel/lib/Tile/Image.php
ansel/lib/View/Base.php
ansel/lib/View/Embedded.php
ansel/lib/View/EmbeddedRenderer/GalleryLink.php
ansel/lib/View/EmbeddedRenderer/Mini.php
ansel/lib/View/GalleryRenderer/Gallery.php
ansel/lib/View/GalleryRenderer/GalleryLightbox.php
ansel/lib/View/Image.php
ansel/lib/View/List.php
ansel/lib/View/Results.php
ansel/lib/Widget/Geotag.php
ansel/lib/Widget/OtherGalleries.php
ansel/lib/Widget/OwnerFaces.php
ansel/lib/Widget/SimilarPhotos.php
ansel/map_edit.php
ansel/perms.php
ansel/preview.php
ansel/protect.php
ansel/report.php
ansel/rss.php
ansel/scripts/all_images_exif_to_tags.php
ansel/scripts/ansel.php
ansel/scripts/recursive_import.php
ansel/scripts/remote_import.php
ansel/templates/gallery/delete_confirmation.inc
ansel/templates/group/category.inc
ansel/templates/group/owner.inc
ansel/xppublish.php