classes/core/Application.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00017 // $Id$
00018 
00019 
00020 import('core.PKPApplication');
00021 
00022 define('PHP_REQUIRED_VERSION', '4.2.0');
00023 
00024 define('ASSOC_TYPE_CONFERENCE',  0x0000100);
00025 define('ASSOC_TYPE_SCHED_CONF',  0x0000101);
00026 
00027 define('CONTEXT_CONFERENCE', 1);
00028 define('CONTEXT_SCHED_CONF', 2);
00029 
00030 class Application extends PKPApplication {
00031    function Application() {
00032       parent::PKPApplication();
00033    }
00034 
00042    function getContextDepth() {
00043       return 2;
00044    }
00045 
00046    function getContextList() {
00047       return array('conference', 'schedConf');
00048    }
00049 
00054    function getName() {
00055       return 'ocs2';
00056    }
00057 
00062    function getNameKey() {
00063       return('common.openConferenceSystems');
00064    }
00065 
00071    function getVersionDescriptorUrl() {
00072       return('http://pkp.sfu.ca/ocs/xml/ocs-version.xml');
00073    }
00074 
00079    function getDAOMap() {
00080       return array_merge(parent::getDAOMap(), array(
00081          'AnnouncementDAO' => 'announcement.AnnouncementDAO',
00082          'AnnouncementTypeDAO' => 'announcement.AnnouncementTypeDAO',
00083          'BuildingDAO' => 'scheduler.BuildingDAO',
00084          'CommentDAO' => 'comment.CommentDAO',
00085          'ConferenceDAO' => 'conference.ConferenceDAO',
00086          'ConferenceEventLogDAO' => 'conference.log.ConferenceEventLogDAO',
00087          'ConferenceSettingsDAO' => 'conference.ConferenceSettingsDAO',
00088          'DirectorSubmissionDAO' => 'submission.director.DirectorSubmissionDAO',
00089          'EditAssignmentDAO' => 'submission.editAssignment.EditAssignmentDAO',
00090          'EmailTemplateDAO' => 'mail.EmailTemplateDAO',
00091          'GroupDAO' => 'group.GroupDAO',
00092          'GroupMembershipDAO' => 'group.GroupMembershipDAO',
00093          'OAIDAO' => 'oai.ocs.OAIDAO',
00094          'PaperCommentDAO' => 'paper.PaperCommentDAO',
00095          'PaperDAO' => 'paper.PaperDAO',
00096          'PaperEmailLogDAO' => 'paper.log.PaperEmailLogDAO',
00097          'PaperEventLogDAO' => 'paper.log.PaperEventLogDAO',
00098          'PaperFileDAO' => 'paper.PaperFileDAO',
00099          'PaperGalleyDAO' => 'paper.PaperGalleyDAO',
00100          'PaperNoteDAO' => 'paper.PaperNoteDAO',
00101          'PaperSearchDAO' => 'search.PaperSearchDAO',
00102          'PaperTypeDAO' => 'paper.PaperTypeDAO',
00103          'PaperTypeEntryDAO' => 'paper.PaperTypeEntryDAO',
00104          'PluginSettingsDAO' => 'plugins.PluginSettingsDAO',
00105          'AuthorDAO' => 'paper.AuthorDAO',
00106          'AuthorSubmissionDAO' => 'submission.author.AuthorSubmissionDAO',
00107          'PublishedPaperDAO' => 'paper.PublishedPaperDAO',
00108          'QueuedPaymentDAO' => 'payment.QueuedPaymentDAO',
00109          'RoleDAO' => 'security.RoleDAO',
00110          'RegistrationDAO' => 'registration.RegistrationDAO',
00111          'RegistrationTypeDAO' => 'registration.RegistrationTypeDAO',
00112          'RegistrationOptionDAO' => 'registration.RegistrationOptionDAO',
00113          'ReviewAssignmentDAO' => 'submission.reviewAssignment.ReviewAssignmentDAO',
00114          'ReviewerSubmissionDAO' => 'submission.reviewer.ReviewerSubmissionDAO',
00115          'ReviewFormDAO' => 'reviewForm.ReviewFormDAO',
00116          'ReviewFormElementDAO' => 'reviewForm.ReviewFormElementDAO',
00117          'ReviewFormResponseDAO' => 'reviewForm.ReviewFormResponseDAO',
00118          'RoomDAO' => 'scheduler.RoomDAO',
00119          'RTDAO' => 'rt.ocs.RTDAO',
00120          'ScheduledTaskDAO' => 'scheduledTask.ScheduledTaskDAO',
00121          'SchedConfDAO' => 'schedConf.SchedConfDAO',
00122          'SchedConfSettingsDAO' => 'schedConf.SchedConfSettingsDAO',
00123          'SchedConfStatisticsDAO' => 'schedConf.SchedConfStatisticsDAO',
00124          'SpecialEventDAO' => 'scheduler.SpecialEventDAO',
00125          'SuppFileDAO' => 'paper.SuppFileDAO',
00126          'TimeBlockDAO' => 'scheduler.TimeBlockDAO',
00127          'TrackDAO' => 'conference.TrackDAO',
00128          'TrackDirectorsDAO' => 'conference.TrackDirectorsDAO',
00129          'TrackDirectorSubmissionDAO' => 'submission.trackDirector.TrackDirectorSubmissionDAO',
00130          'UserDAO' => 'user.UserDAO',
00131          'UserSettingsDAO' => 'user.UserSettingsDAO'
00132       ));
00133    }
00134 
00138    function getPluginCategories() {
00139       return array(
00140          'auth',
00141          'blocks',
00142          'citationFormats',
00143          'gateways',
00144          'generic',
00145          'implicitAuth',
00146          'importexport',
00147          'paymethod',
00148          'reports',
00149          'themes'
00150       );
00151    }
00152 
00157    function &instantiateHelp() {
00158       import('help.Help');
00159       $help = new Help();
00160       return $help;
00161    }
00162 }
00163 
00164 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7