* @version $Revision: 1173 $ */ class IntegrityModule extends GalleryModule { function IntegrityModule() { global $gallery; $this->setId('integrity'); $this->setName($gallery->i18n('Integrity Check')); $this->setDescription($gallery->i18n('Check integrity of the Gallery database and files')); $this->setVersion('0.1.2'); $this->setGroup('gallery', $gallery->i18n('Gallery')); $this->setCallbacks(''); $this->setRequiredCoreApi(array(7, 4)); $this->setRequiredModuleApi(array(3, 0)); } /** * @see GalleryModule::performFactoryRegistrations() */ function performFactoryRegistrations() { $ret = GalleryCoreApi::registerFactoryImplementation( 'MaintenanceTask', 'IntegrityCheckTask', 'IntegrityCheckTask', 'modules/integrity/classes/IntegrityCheckTask.class', 'integrity', null); if ($ret) { return $ret; } return null; } } ?>