*/ class PicasaModule extends GalleryModule { function PicasaModule() { global $gallery; $this->setId('picasa'); $this->setName($gallery->i18n('Picasa')); $this->setDescription($gallery->i18n('Import for Picasa 2 XML-Exports')); $this->setVersion('1.0.3'); $this->setGroup('import', $this->translate('Import')); $this->setCallbacks('getSiteAdminViews'); $this->setRequiredCoreApi(array(7, 0)); $this->setRequiredModuleApi(array(3, 0)); } /** * @see GalleryModule::performFactoryRegistrations() */ function performFactoryRegistrations() { $ret = GalleryCoreApi::registerFactoryImplementation( 'ItemAddPlugin', 'ItemAddFromPicasa', 'ItemAddFromPicasa', 'modules/picasa/ItemAddFromPicasa.inc', 'picasa', null); if ($ret) { return $ret->wrap(__FILE__, __LINE__); } return null; } /** * @see GalleryModule::getSiteAdminViews */ function getSiteAdminViews() { return array(null, array(array('name' => $this->translate('Picasa 2'), 'view' => 'picasa.SelectPicasaExportPath'))); } } ?>