*/ class PublishXpModule extends GalleryModule { /** * Constructs the PublishXpModule that is registered with Gallery. */ function PublishXpModule() { global $gallery; $this->setId('publishxp'); $this->setName($gallery->i18n('Publish XP')); $this->setDescription($gallery->i18n('Implementation for direct publishing from XP')); $this->setVersion('1.0.4'); $this->setGroup('import', $gallery->i18n('Import')); $this->setCallbacks(''); $this->setRequiredCoreApi(array(7, 0)); $this->setRequiredModuleApi(array(3, 0)); } /** * Registers the item add operation with Gallery. * * @see GalleryModule::performFactoryRegistrations */ function performFactoryRegistrations() { GalleryCoreApi::registerFactoryImplementation( 'ItemAddPlugin', 'ItemAddPublishXp', 'ItemAddPublishXp', 'modules/publishxp/ItemAddPublishXp.inc', 'publishxp', null); return null; } } ?>