*/ /** * The implementation of the Image Frame module * * @package ImageFrame */ class ImageFrameModule extends GalleryModule { function ImageFrameModule() { global $gallery; $this->setId('imageframe'); $this->setName($gallery->i18n('ImageFrame')); $this->setDescription($gallery->i18n('Render frames around images')); $this->setVersion('1.0.0'); $this->setGroup('display', $this->translate('Display')); $this->setCallbacks(''); $this->setRequiredCoreApi(array(6, 0)); $this->setRequiredModuleApi(array(2, 0)); } /** * @see GalleryModule::performFactoryRegistrations() */ function performFactoryRegistrations() { $ret = GalleryCoreApi::registerFactoryImplementation( 'ImageFrameInterface_1_1', 'ImageFrameImpl', 'ImageFrame', 'modules/imageframe/classes/ImageFrameImpl.class', 'imageframe', null); if ($ret->isError()) { return $ret->wrap(__FILE__, __LINE__); } return GalleryStatus::success(); } /** * @see GalleryModule::isRecommendedDuringInstall() */ function isRecommendedDuringInstall() { return false; } /** * @see GalleryModule::autoConfigure() */ function autoConfigure() { /* We don't require any special configuration */ return array(GalleryStatus::success(), true); } } ?>