• Main Page
  • Modules
  • Classes
  • Files
  • File List

classes/core/Application.inc.php

00001 <?php
00002 
00018 import('lib.pkp.classes.core.PKPApplication');
00019 
00020 define('PHP_REQUIRED_VERSION', '4.2.0');
00021 
00022 define('ASSOC_TYPE_PRESS',       0x0000200);
00023 define('ASSOC_TYPE_MONOGRAPH',         0x0000201);
00024 define('ASSOC_TYPE_PRODUCTION_ASSIGNMENT',   0x0000202);
00025 define('ASSOC_TYPE_MONOGRAPH_FILE',    0x0000203);
00026 define('ASSOC_TYPE_REVIEW_RESPONSE',      0x0000204);
00027 define('ASSOC_TYPE_REVIEW_ASSIGNMENT',    0x0000205);
00028 define('ASSOC_TYPE_MONOGRAPH_EMAIL_LOG_ENTRY',  0x0000206);
00029 define('ASSOC_TYPE_WORKFLOW_STAGE',    0x0000207);
00030 define('ASSOC_TYPE_NOTE',        0x0000208);
00031 define('ASSOC_TYPE_PUBLICATION_FORMAT',      0x0000209);
00032 define('ASSOC_TYPE_ANNOUNCEMENT',      0x000020A);
00033 define('ASSOC_TYPE_REVIEW_ROUND',      0x000020B);
00034 define('ASSOC_TYPE_CATEGORY',       0x000020D);
00035 define('ASSOC_TYPE_SERIES',         0x000020E);
00036 define('ASSOC_TYPE_MONOGRAPH_FILES',      0x000020F);
00037 define('ASSOC_TYPE_PUBLISHED_MONOGRAPH',  0x0000210);
00038 
00039 define('CONTEXT_PRESS', 1);
00040 
00041 define_exposed('WORKFLOW_STAGE_ID_PUBLISHED', 0); // FIXME? See bug #6463.
00042 define_exposed('WORKFLOW_STAGE_ID_SUBMISSION', 1);
00043 define_exposed('WORKFLOW_STAGE_ID_INTERNAL_REVIEW', 2);
00044 define_exposed('WORKFLOW_STAGE_ID_EXTERNAL_REVIEW', 3);
00045 define_exposed('WORKFLOW_STAGE_ID_EDITING', 4);
00046 define_exposed('WORKFLOW_STAGE_ID_PRODUCTION', 5);
00047 
00048 // FIXME: these were defined in userGroup. they need to be moved somewhere with classes that do mapping.
00049 define('WORKFLOW_STAGE_PATH_SUBMISSION', 'submission');
00050 define('WORKFLOW_STAGE_PATH_INTERNAL_REVIEW', 'internalReview');
00051 define('WORKFLOW_STAGE_PATH_EXTERNAL_REVIEW', 'externalReview');
00052 define('WORKFLOW_STAGE_PATH_EDITING', 'editorial');
00053 define('WORKFLOW_STAGE_PATH_PRODUCTION', 'production');
00054 
00055 // To expose LISTBUILDER_SOURCE_TYPE_... constants via JS
00056 import('lib.pkp.classes.controllers.listbuilder.ListbuilderHandler');
00057 // To expose ORDER_CATEGORY_GRID_... constants via JS
00058 import('lib.pkp.classes.controllers.grid.feature.OrderCategoryGridItemsFeature');
00059 
00060 class Application extends PKPApplication {
00061    function Application() {
00062       parent::PKPApplication();
00063    }
00064 
00072    function getContextDepth() {
00073       return 1;
00074    }
00075 
00080    function getContextList() {
00081       return array('press');
00082    }
00083 
00088    function getName() {
00089       return 'omp';
00090    }
00091 
00096    function getNameKey() {
00097       return('common.openMonographPress');
00098    }
00099 
00105    function getVersionDescriptorUrl() {
00106       return('http://pkp.sfu.ca/omp/xml/omp-version.xml');
00107    }
00108 
00113    function getDAOMap() {
00114       return array_merge(parent::getDAOMap(), array(
00115          'AnnouncementDAO' => 'classes.announcement.AnnouncementDAO',
00116          'AnnouncementTypeDAO' => 'classes.announcement.AnnouncementTypeDAO',
00117          'AuthorDAO' => 'classes.monograph.AuthorDAO',
00118          'CataloguingMetadataFieldDAO' => 'classes.cataloguingMetadata.CataloguingMetadataFieldDAO',
00119          'ChapterAuthorDAO' => 'classes.monograph.ChapterAuthorDAO',
00120          'ChapterDAO' => 'classes.monograph.ChapterDAO',
00121          'CategoryDAO' => 'classes.press.CategoryDAO',
00122          'EmailTemplateDAO' => 'classes.mail.EmailTemplateDAO',
00123          'FeatureDAO' => 'classes.press.FeatureDAO',
00124          'FooterCategoryDAO' => 'classes.press.FooterCategoryDAO',
00125          'FooterLinkDAO' => 'classes.press.FooterLinkDAO',
00126          'GenreDAO' => 'classes.monograph.GenreDAO',
00127          'IdentificationCodeDAO' => 'classes.publicationFormat.IdentificationCodeDAO',
00128          'LayoutAssignmentDAO' => 'submission.layoutAssignment.LayoutAssignmentDAO',
00129          'LibraryFileDAO' => 'classes.press.LibraryFileDAO',
00130          'MarketDAO' => 'classes.publicationFormat.MarketDAO',
00131          'MonographCommentDAO' => 'classes.monograph.MonographCommentDAO',
00132          'MonographAgencyDAO' => 'classes.monograph.MonographAgencyDAO',
00133          'MonographAgencyEntryDAO' => 'classes.monograph.MonographAgencyEntryDAO',
00134          'MonographDAO' => 'classes.monograph.MonographDAO',
00135          'MonographDisciplineDAO' => 'classes.monograph.MonographDisciplineDAO',
00136          'MonographDisciplineEntryDAO' => 'classes.monograph.MonographDisciplineEntryDAO',
00137          'MonographEmailLogDAO' => 'classes.log.MonographEmailLogDAO',
00138          'MonographEventLogDAO' => 'classes.log.MonographEventLogDAO',
00139          'MonographFileEmailLogDAO' => 'classes.log.MonographFileEmailLogDAO',
00140          'MonographFileEventLogDAO' => 'classes.log.MonographFileEventLogDAO',
00141          'MonographFileSignoffDAO' => 'classes.monograph.MonographFileSignoffDAO',
00142          'MonographLanguageDAO' => 'classes.monograph.MonographLanguageDAO',
00143          'MonographLanguageEntryDAO' => 'classes.monograph.MonographLanguageEntryDAO',
00144          'MonographKeywordDAO' => 'classes.monograph.MonographKeywordDAO',
00145          'MonographKeywordEntryDAO' => 'classes.monograph.MonographKeywordEntryDAO',
00146          'MonographSubjectDAO' => 'classes.monograph.MonographSubjectDAO',
00147          'MonographSubjectEntryDAO' => 'classes.monograph.MonographSubjectEntryDAO',
00148          'MonographSearchDAO' => 'classes.search.MonographSearchDAO',
00149          'NewReleaseDAO' => 'classes.press.NewReleaseDAO',
00150          'NoteDAO' => 'classes.note.NoteDAO',
00151          'NotificationStatusDAO' => 'classes.press.NotificationStatusDAO',
00152          'OAIDAO' => 'classes.oai.omp.OAIDAO',
00153          'OMPCompletedPaymentDAO' => 'classes.payment.omp.OMPCompletedPaymentDAO',
00154          'PluginSettingsDAO' => 'classes.plugins.PluginSettingsDAO',
00155          'PressDAO' => 'classes.press.PressDAO',
00156          'PressSettingsDAO' => 'classes.press.PressSettingsDAO',
00157          'ProductionAssignmentDAO' => 'classes.submission.productionAssignment.ProductionAssignmentDAO',
00158          'PublicationDateDAO' => 'classes.publicationFormat.PublicationDateDAO',
00159          'PublicationFormatDAO' => 'classes.publicationFormat.PublicationFormatDAO',
00160          'PublishedMonographDAO' => 'classes.monograph.PublishedMonographDAO',
00161          'QueuedPaymentDAO' => 'lib.pkp.classes.payment.QueuedPaymentDAO',
00162          'RepresentativeDAO' => 'classes.monograph.RepresentativeDAO',
00163          'ReviewAssignmentDAO' => 'classes.submission.reviewAssignment.ReviewAssignmentDAO',
00164          'ReviewerSubmissionDAO' => 'classes.submission.reviewer.ReviewerSubmissionDAO',
00165          'ReviewFormDAO' => 'lib.pkp.classes.reviewForm.ReviewFormDAO',
00166          'ReviewFormElementDAO' => 'lib.pkp.classes.reviewForm.ReviewFormElementDAO',
00167          'ReviewFormResponseDAO' => 'lib.pkp.classes.reviewForm.ReviewFormResponseDAO',
00168          'ReviewRoundDAO' => 'classes.monograph.reviewRound.ReviewRoundDAO',
00169          'RoleDAO' => 'classes.security.RoleDAO',
00170          'SalesRightsDAO' => 'classes.publicationFormat.SalesRightsDAO',
00171          'SeriesDAO' => 'classes.press.SeriesDAO',
00172          'SeriesEditorsDAO' => 'classes.press.SeriesEditorsDAO',
00173          'SeriesEditorSubmissionDAO' => 'classes.submission.seriesEditor.SeriesEditorSubmissionDAO',
00174          'SignoffDAO' => 'classes.signoff.SignoffDAO',
00175          'SocialMediaDAO' => 'classes.press.SocialMediaDAO',
00176          'SpotlightDAO' => 'classes.spotlight.SpotlightDAO',
00177          'StageAssignmentDAO' => 'classes.stageAssignment.StageAssignmentDAO',
00178          'SubmissionFileDAO' => 'classes.monograph.SubmissionFileDAO',
00179          'UserGroupAssignmentDAO' => 'lib.pkp.classes.security.UserGroupAssignmentDAO',
00180          'UserGroupDAO' => 'classes.security.UserGroupDAO',
00181          'UserDAO' => 'classes.user.UserDAO',
00182          'UserSettingsDAO' => 'classes.user.UserSettingsDAO',
00183          'UserStageAssignmentDAO' => 'classes.user.UserStageAssignmentDAO',
00184          'ViewsDAO' => 'classes.views.ViewsDAO',
00185       ));
00186    }
00187 
00192    function getPluginCategories() {
00193       return array(
00194          // NB: Meta-data plug-ins are first in the list as this
00195          // will make them being loaded (and installed) first.
00196          // This is necessary as several other plug-in categories
00197          // depend on meta-data. This is a very rudimentary type of
00198          // dependency management for plug-ins.
00199          'metadata',
00200          'blocks',
00201          'generic',
00202          'importexport',
00203          'oaiMetadataFormats',
00204       );
00205    }
00206 }
00207 
00208 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1