From 63097254385f94e30d69970eccb3940f18e96678 Mon Sep 17 00:00:00 2001 From: spider Date: Thu, 9 Oct 2014 15:22:09 -0400 Subject: add ::getServiceKey --- FisheyeBase.php | 4 +++- FisheyeGallery.php | 3 +++ FisheyeImage.php | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/FisheyeBase.php b/FisheyeBase.php index b778ff5..1cdcb9c 100644 --- a/FisheyeBase.php +++ b/FisheyeBase.php @@ -11,11 +11,13 @@ require_once( LIBERTY_PKG_PATH.'LibertyMime.php' ); // FisheyeGallery base clas /** * @package fisheye */ -class FisheyeBase extends LibertyMime +abstract class FisheyeBase extends LibertyMime { // Path of gallery images to get breadcrumbs var $mGalleryPath; + abstract public static function getServiceKey(); + function FisheyeBase() { $this->mGalleryPath = ''; if( get_class( $this ) == 'fisheyegallery' ) { diff --git a/FisheyeGallery.php b/FisheyeGallery.php index b1984fd..e9cd557 100644 --- a/FisheyeGallery.php +++ b/FisheyeGallery.php @@ -1082,6 +1082,9 @@ class FisheyeGallery extends FisheyeBase { return ''; } + public static function getServiceKey() { + return 'fisheye'; + } } function addGalleryRecursive( $pGalleryId , $pPath = '/', &$pZip ){ diff --git a/FisheyeImage.php b/FisheyeImage.php index 1b01a9a..6c7715c 100644 --- a/FisheyeImage.php +++ b/FisheyeImage.php @@ -890,6 +890,10 @@ class FisheyeImage extends FisheyeBase { } return $ret; } + + public static function getServiceKey() { + return 'fisheye'; + } } ?> -- cgit v1.3