Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
*5256* Reduce include path to a single entry and change all import st…
Browse files Browse the repository at this point in the history
…atements
  • Loading branch information
fgrandel committed May 3, 2010
1 parent fa0a209 commit d96690d
Show file tree
Hide file tree
Showing 297 changed files with 809 additions and 808 deletions.
8 changes: 4 additions & 4 deletions classes/admin/form/ConferenceSiteSettingsForm.inc.php
Expand Up @@ -14,8 +14,8 @@

//$Id$

import('db.DBDataXMLParser');
import('form.Form');
import('lib.pkp.classes.db.DBDataXMLParser');
import('lib.pkp.classes.form.Form');

class ConferenceSiteSettingsForm extends Form {

Expand Down Expand Up @@ -141,7 +141,7 @@ function execute() {
}

// Make the file directories for the conference
import('file.FileManager');
import('lib.pkp.classes.file.FileManager');
FileManager::mkdir(Config::getVar('files', 'files_dir') . '/conferences/' . $conferenceId);
FileManager::mkdir(Config::getVar('files', 'files_dir') . '/conferences/' . $conferenceId . '/schedConfs');
FileManager::mkdir(Config::getVar('files', 'public_files_dir') . '/conferences/' . $conferenceId);
Expand All @@ -163,7 +163,7 @@ function execute() {
));

// Install the default RT versions.
import('rt.ocs.ConferenceRTAdmin');
import('classes.rt.ocs.ConferenceRTAdmin');
$conferenceRtAdmin = new ConferenceRTAdmin($conferenceId);
$conferenceRtAdmin->restoreVersions(false);
}
Expand Down
4 changes: 2 additions & 2 deletions classes/admin/form/ImportOCS1Form.inc.php
Expand Up @@ -14,8 +14,8 @@

//$Id$

import('site.ImportOCS1');
import('form.Form');
import('classes.site.ImportOCS1');
import('lib.pkp.classes.form.Form');

class ImportOCS1Form extends Form {

Expand Down
2 changes: 1 addition & 1 deletion classes/admin/form/SiteSettingsForm.inc.php
Expand Up @@ -16,7 +16,7 @@
// $Id$


import('admin.form.PKPSiteSettingsForm');
import('lib.pkp.classes.admin.form.PKPSiteSettingsForm');

class SiteSettingsForm extends PKPSiteSettingsForm {

Expand Down
2 changes: 1 addition & 1 deletion classes/announcement/Announcement.inc.php
Expand Up @@ -17,7 +17,7 @@
* @brief Basic class describing a announcement.
*
*/
import('announcement.PKPAnnouncement');
import('lib.pkp.classes.announcement.PKPAnnouncement');

class Announcement extends PKPAnnouncement {
}
Expand Down
4 changes: 2 additions & 2 deletions classes/announcement/AnnouncementDAO.inc.php
Expand Up @@ -15,8 +15,8 @@

// $Id$

import('announcement.Announcement');
import('announcement.PKPAnnouncementDAO');
import('classes.announcement.Announcement');
import('lib.pkp.classes.announcement.PKPAnnouncementDAO');

class AnnouncementDAO extends PKPAnnouncementDAO {

Expand Down
2 changes: 1 addition & 1 deletion classes/announcement/AnnouncementType.inc.php
Expand Up @@ -15,7 +15,7 @@

//$Id$

import('announcement.PKPAnnouncementType');
import('lib.pkp.classes.announcement.PKPAnnouncementType');

class AnnouncementType extends PKPAnnouncementType {

Expand Down
4 changes: 2 additions & 2 deletions classes/announcement/AnnouncementTypeDAO.inc.php
Expand Up @@ -15,8 +15,8 @@

//$Id$

import('announcement.AnnouncementType');
import('announcement.PKPAnnouncementTypeDAO');
import('classes.announcement.AnnouncementType');
import('lib.pkp.classes.announcement.PKPAnnouncementTypeDAO');

class AnnouncementTypeDAO extends PKPAnnouncementTypeDAO {

Expand Down
6 changes: 3 additions & 3 deletions classes/author/form/submit/AuthorSubmitForm.inc.php
Expand Up @@ -20,7 +20,7 @@
// $Id$


import('form.Form');
import('lib.pkp.classes.form.Form');

class AuthorSubmitForm extends Form {

Expand Down Expand Up @@ -91,12 +91,12 @@ function display() {

function confirmSubmission(&$paper, &$user, &$schedConf, &$conference, $mailTemplate = 'SUBMISSION_ACK') {
// Update search index
import('search.PaperSearchIndex');
import('classes.search.PaperSearchIndex');
PaperSearchIndex::indexPaperMetadata($paper);
PaperSearchIndex::indexPaperFiles($paper);

// Send author notification email
import('mail.PaperMailTemplate');
import('classes.mail.PaperMailTemplate');
$mail = new PaperMailTemplate($paper, $mailTemplate, null, null, null, null, false);
$mail->setFrom($schedConf->getSetting('contactEmail'), $schedConf->getSetting('contactName'));
if ($mail->isEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion classes/author/form/submit/AuthorSubmitStep1Form.inc.php
Expand Up @@ -14,7 +14,7 @@

//$Id$

import("author.form.submit.AuthorSubmitForm");
import('classes.author.form.submit.AuthorSubmitForm');

class AuthorSubmitStep1Form extends AuthorSubmitForm {

Expand Down
4 changes: 2 additions & 2 deletions classes/author/form/submit/AuthorSubmitStep2Form.inc.php
Expand Up @@ -14,7 +14,7 @@

//$Id$

import("author.form.submit.AuthorSubmitForm");
import('classes.author.form.submit.AuthorSubmitForm');

class AuthorSubmitStep2Form extends AuthorSubmitForm {
/**
Expand Down Expand Up @@ -67,7 +67,7 @@ function display() {
* @return boolean
*/
function uploadSubmissionFile($fileName) {
import("file.PaperFileManager");
import('classes.file.PaperFileManager');

$paperFileManager = new PaperFileManager($this->paperId);
$paperDao =& DAORegistry::getDAO('PaperDAO');
Expand Down
6 changes: 3 additions & 3 deletions classes/author/form/submit/AuthorSubmitStep3Form.inc.php
Expand Up @@ -14,7 +14,7 @@

//$Id$

import("author.form.submit.AuthorSubmitForm");
import('classes.author.form.submit.AuthorSubmitForm');

class AuthorSubmitStep3Form extends AuthorSubmitForm {
/**
Expand Down Expand Up @@ -265,8 +265,8 @@ function execute() {
// Log the submission, even though it may not be "complete"
// at this step. This is important because we don't otherwise
// capture changes in review process.
import('paper.log.PaperLog');
import('paper.log.PaperEventLogEntry');
import('classes.paper.log.PaperLog');
import('classes.paper.log.PaperEventLogEntry');
PaperLog::logEvent($this->paperId, PAPER_LOG_ABSTRACT_SUBMIT, LOG_TYPE_AUTHOR, $user->getId(), 'log.author.abstractSubmitted', array('submissionId' => $paper->getId(), 'authorName' => $user->getFullName()));
return $this->paperId;
}
Expand Down
2 changes: 1 addition & 1 deletion classes/author/form/submit/AuthorSubmitStep4Form.inc.php
Expand Up @@ -14,7 +14,7 @@

//$Id$

import("author.form.submit.AuthorSubmitForm");
import('classes.author.form.submit.AuthorSubmitForm');

class AuthorSubmitStep4Form extends AuthorSubmitForm {
/**
Expand Down
6 changes: 3 additions & 3 deletions classes/author/form/submit/AuthorSubmitStep5Form.inc.php
Expand Up @@ -14,7 +14,7 @@

//$Id$

import("author.form.submit.AuthorSubmitForm");
import('classes.author.form.submit.AuthorSubmitForm');

class AuthorSubmitStep5Form extends AuthorSubmitForm {

Expand Down Expand Up @@ -88,8 +88,8 @@ function execute() {

$this->confirmSubmission($paper, $user, $schedConf, $conference, $reviewMode == REVIEW_MODE_BOTH_SEQUENTIAL?'SUBMISSION_UPLOAD_ACK':'SUBMISSION_ACK');

import('paper.log.PaperLog');
import('paper.log.PaperEventLogEntry');
import('classes.paper.log.PaperLog');
import('classes.paper.log.PaperEventLogEntry');
PaperLog::logEvent($this->paperId, PAPER_LOG_PRESENTATION_SUBMIT, LOG_TYPE_AUTHOR, $user->getId(), 'log.author.presentationSubmitted', array('submissionId' => $paper->getId(), 'authorName' => $user->getFullName()));

return $this->paperId;
Expand Down
4 changes: 2 additions & 2 deletions classes/author/form/submit/AuthorSubmitSuppFileForm.inc.php
Expand Up @@ -14,7 +14,7 @@

//$Id$

import('form.Form');
import('lib.pkp.classes.form.Form');

class AuthorSubmitSuppFileForm extends Form {
/** @var int the ID of the paper */
Expand Down Expand Up @@ -152,7 +152,7 @@ function readInputData() {
* @return int the supplementary file ID
*/
function execute() {
import("file.PaperFileManager");
import('classes.file.PaperFileManager');
$paperFileManager = new PaperFileManager($this->paperId);
$suppFileDao =& DAORegistry::getDAO('SuppFileDAO');

Expand Down
2 changes: 1 addition & 1 deletion classes/comment/CommentDAO.inc.php
Expand Up @@ -15,7 +15,7 @@

//$Id$

import('comment.Comment');
import('classes.comment.Comment');

define ('PAPER_COMMENT_RECURSE_ALL', -1);

Expand Down
6 changes: 3 additions & 3 deletions classes/comment/form/CommentForm.inc.php
Expand Up @@ -20,7 +20,7 @@
// $Id$


import('form.Form');
import('lib.pkp.classes.form.Form');

class CommentForm extends Form {

Expand Down Expand Up @@ -53,7 +53,7 @@ function CommentForm($commentId, $paperId, $galleyId, $parentId = null) {
$commentDao =& DAORegistry::getDAO('CommentDAO');
$this->comment =& $commentDao->getComment($commentId, $paperId);

import('captcha.CaptchaManager');
import('lib.pkp.classes.captcha.CaptchaManager');
$captchaManager = new CaptchaManager();
$this->captchaEnabled = ($captchaManager->isEnabled() && Config::getVar('captcha', 'captcha_on_comments'))?true:false;

Expand Down Expand Up @@ -117,7 +117,7 @@ function display() {
}

if ($this->captchaEnabled) {
import('captcha.CaptchaManager');
import('lib.pkp.classes.captcha.CaptchaManager');
$captchaManager = new CaptchaManager();
$captcha =& $captchaManager->createCaptcha();
if ($captcha) {
Expand Down
2 changes: 1 addition & 1 deletion classes/conference/ConferenceDAO.inc.php
Expand Up @@ -15,7 +15,7 @@

//$Id$

import ('conference.Conference');
import ('classes.conference.Conference');

class ConferenceDAO extends DAO {
/**
Expand Down
2 changes: 1 addition & 1 deletion classes/conference/ConferenceSettingsDAO.inc.php
Expand Up @@ -15,7 +15,7 @@

//$Id$

import('db.SettingsDAO');
import('classes.db.SettingsDAO');
class ConferenceSettingsDAO extends SettingsDAO {
function &_getCache($conferenceId) {
static $settingCache;
Expand Down
2 changes: 1 addition & 1 deletion classes/conference/TrackDAO.inc.php
Expand Up @@ -17,7 +17,7 @@
// $Id$


import ('conference.Track');
import ('classes.conference.Track');

class TrackDAO extends DAO {
/**
Expand Down
2 changes: 1 addition & 1 deletion classes/conference/log/ConferenceEventLogDAO.inc.php
Expand Up @@ -19,7 +19,7 @@

//$Id$

import ('conference.log.ConferenceEventLogEntry');
import ('classes.conference.log.ConferenceEventLogEntry');

class ConferenceEventLogDAO extends DAO {

Expand Down
2 changes: 1 addition & 1 deletion classes/conference/log/ConferenceEventLogEntry.inc.php
Expand Up @@ -15,7 +15,7 @@

//$Id$

import('log.EventLogConstants');
import('classes.log.EventLogConstants');

// Log entry event types. All types must be defined here
define('CONFERENCE_LOG_DEFAULT', 0);
Expand Down

0 comments on commit d96690d

Please sign in to comment.