コード例 #1
0
ファイル: FileLoader.inc.php プロジェクト: doana/pkp-lib
 /**
  * Constructor.
  * @param $args array script arguments
  */
 function FileLoader($args)
 {
     parent::ScheduledTask($args);
     // Set an initial process id and load translations (required
     // for email notifications).
     AppLocale::requireComponents(LOCALE_COMPONENT_PKP_ADMIN);
     $this->_newProcessId();
     // Canonicalize the base path.
     $basePath = rtrim($args[0], DIRECTORY_SEPARATOR);
     $basePathFolder = basename($basePath);
     // We assume that the parent folder of the base path
     // does already exist and can be canonicalized.
     $basePathParent = realpath(dirname($basePath));
     if ($basePathParent === false) {
         $basePath = null;
     } else {
         $basePath = $basePathParent . DIRECTORY_SEPARATOR . $basePathFolder;
     }
     $this->_basePath = $basePath;
     // Configure paths.
     if (!is_null($basePath)) {
         $this->_stagePath = $basePath . DIRECTORY_SEPARATOR . FILE_LOADER_PATH_STAGING;
         $this->_archivePath = $basePath . DIRECTORY_SEPARATOR . FILE_LOADER_PATH_ARCHIVE;
         $this->_rejectPath = $basePath . DIRECTORY_SEPARATOR . FILE_LOADER_PATH_REJECT;
         $this->_processingPath = $basePath . DIRECTORY_SEPARATOR . FILE_LOADER_PATH_PROCESSING;
     }
     // Set admin email and name.
     $siteDao = DAORegistry::getDAO('SiteDAO');
     /* @var $siteDao SiteDAO */
     $site = $siteDao->getSite();
     /* @var $site Site */
     $this->_adminEmail = $site->getLocalizedContactEmail();
     $this->_adminName = $site->getLocalizedContactName();
 }
コード例 #2
0
ファイル: MedraInfoSender.inc.php プロジェクト: bkroll/ojs
 /**
  * Constructor.
  * @param $argv array task arguments
  */
 function MedraInfoSender($args)
 {
     PluginRegistry::loadCategory('importexport');
     $plugin = PluginRegistry::getPlugin('importexport', 'MedraExportPlugin');
     /* @var $plugin MedraExportPlugin */
     $this->_plugin = $plugin;
     if (is_a($plugin, 'MedraExportPlugin')) {
         $plugin->addLocaleData();
     }
     parent::ScheduledTask($args);
 }
コード例 #3
0
 /**
  * Constructor.
  * @param $argv array task arguments
  */
 function DataciteInfoSender($args)
 {
     PluginRegistry::loadCategory('importexport');
     $plugin =& PluginRegistry::getPlugin('importexport', 'DataciteExportPlugin');
     /* @var $plugin CrossRefExportPlugin */
     $this->_plugin =& $plugin;
     if (is_a($plugin, 'DataciteExportPlugin')) {
         $plugin->addLocaleData();
     }
     parent::ScheduledTask($args);
 }
コード例 #4
0
 /**
  * Constructor.
  * @param $argv array task arguments
  */
 function ArticleInfoSender($args)
 {
     PluginRegistry::loadCategory('generic');
     $plugin =& PluginRegistry::getPlugin('generic', 'almplugin');
     /* @var $plugin AlmPlugin */
     $this->_plugin =& $plugin;
     if (is_a($plugin, 'AlmPlugin')) {
         $plugin->addLocaleData();
         $this->_depositUrl = $plugin->getSetting(CONTEXT_ID_NONE, 'depositUrl');
     }
     parent::ScheduledTask($args);
 }
コード例 #5
0
 /**
  * Constructor.
  * @param $argv array task arguments
  */
 function Depositor($args)
 {
     PluginRegistry::loadCategory('generic');
     $this->_plugin =& PluginRegistry::getPlugin('generic', PLN_PLUGIN_NAME);
     parent::ScheduledTask($args);
 }
コード例 #6
0
 /**
  * Constructor.
  */
 function BooksForReviewReminder()
 {
     parent::ScheduledTask();
 }
コード例 #7
0
 /**
  * Constructor.
  */
 function OpenAccessNotification()
 {
     parent::ScheduledTask();
 }
コード例 #8
0
ファイル: ReviewReminder.inc.php プロジェクト: jprk/pkp-lib
 /**
  * Constructor.
  */
 function ReviewReminder()
 {
     parent::ScheduledTask();
 }
コード例 #9
0
 /**
  * Constructor.
  */
 function SubscriptionExpiryReminder()
 {
     parent::ScheduledTask();
 }
コード例 #10
0
 /**
  * Constructor.
  */
 function ObjectsForReviewReminder()
 {
     parent::ScheduledTask();
 }