/**
  * @see PKPPlugin::register($category, $path)
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success) {
         $this->addLocaleData();
     }
     return $success;
 }
 /**
  * Called as a plugin is registered to the registry
  * @param $category String Name of category plugin was registered to
  * @return boolean True if plugin initialized successfully; if false,
  * 	the plugin will not be registered.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success) {
         $this->import('TimedViewReportForm');
         $this->addLocaleData();
     }
     return $success;
 }
Esempio n. 3
0
 /**
  * Called as a plugin is registered to the registry
  * @param $category String Name of category plugin was registered to
  * @return boolean True if plugin initialized successfully; if false,
  * 	the plugin will not be registered.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success) {
         $this->import('ArticleReportDAO');
         $articleReportDAO = new ArticleReportDAO();
         DAORegistry::registerDAO('ArticleReportDAO', $articleReportDAO);
     }
     $this->addLocaleData();
     return $success;
 }
 /**
  * Called as a plugin is registered to the registry
  * @param $category String Name of category plugin was registered to
  * @return boolean True if plugin initialized successfully; if false,
  * 	the plugin will not be registered.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success && Config::getVar('general', 'installed')) {
         $this->import('ArticleReportDAO');
         $articleReportDAO = new ArticleReportDAO();
         DAORegistry::registerDAO('ArticleReportDAO', $articleReportDAO);
     }
     $this->addLocaleData();
     return $success;
 }
Esempio n. 5
0
 /**
  * Called as a plugin is registered to the registry
  * @param $category String Name of category plugin was registered to
  * @return boolean True if plugin initialized successfully; if false,
  * 	the plugin will not be registered.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success) {
         $this->import('ReportClass.MultiPaperReportDAO');
         $PaperReportDAO = new MultiPaperReportDAO();
         DAORegistry::registerDAO('MultiPaperReportDAO', $PaperReportDAO);
     }
     $this->addLocaleData();
     return $success;
 }