Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
DAORegistry Class Reference

Static Public Member Functions

static & getDAO ($name, $dbconn=null)
 
static & getDAOs ()
 
static registerDAO ($name, $dao)
 

Detailed Description

Maintains a static list of DAO objects so each DAO is instantiated only once.

See Also
DAO

Definition at line 20 of file DAORegistry.inc.php.

Member Function Documentation

static& DAORegistry::getDAO (   $name,
  $dbconn = null 
)
static

Retrieve a reference to the specified DAO.

Parameters
$namestring the class name of the requested DAO
$dbconnADONewConnection optional
Returns
DAO

Definition at line 57 of file DAORegistry.inc.php.

References getDAOs().

Referenced by ContextSiteSettingsForm\_assignManagerGroup(), PKPSubmissionHandler\_canExpedite(), AdminLanguageGridHandler\_canManage(), SubmissionFileDAODelegate\_deleteDependentObjects(), IndexHandler\_displayPressIndexPage(), ReviewerSubmissionDAO\_fromRow(), SeriesEditorSubmissionDAO\_fromRow(), UserGroupGridHandler\_getAssignedStages(), ReviewerSelectGridHandler\_getFilterData(), CatalogEntryTabHandler\_getFormFromCurrentTab(), AuthorDashboardHandler\_getLastReviewRoundNumbers(), PKPAuthorDashboardHandler\_getLastReviewRoundNumbers(), SignoffNotesLinkAction\_getNoteState(), NotificationHandler\_getNotificationsByOptions(), DOIPubIdPlugin\_getPress(), PublicationFormatTombstoneManager\_getPublishedMonographFactoryByPressId(), SignoffOnSignoffGridColumn\_getSignoffStatus(), EmailLogDAO\_insertLogUserIds(), ReviewerForm\_isValidReviewer(), ContextSiteSettingsForm\_loadDefaultUserGroups(), WorkflowHandler\_notificationOptionsByStage(), AccessKeyManager\_performPeriodicCleanup(), NativeXmlPublicationFormatFilter\_processProductNode(), CommentDAO\_returnCommentFromRow(), ManageCatalogHandler\_setupMonographsTemplate(), AdminLanguageGridHandler\_updateContextLocaleSettings(), SubmissionFileDAODelegate\_updateDependentObjects(), AboutSiteHandler\aboutThisPublishingSystem(), AccessKeyManager\AccessKeyManager(), RegistrationHandler\activateUser(), SubmissionNativeXmlFilter\addAuthors(), SubmissionNativeXmlFilter\addFiles(), SubmissionNativeXmlFilter\addRepresentations(), EditorAction\addReviewer(), TemplateBasedReferencesListFilter\addTemplateVars(), CopyeditingFilesGridHandler\approveCopyedit(), AnnouncementGridHandler\authorize(), MarketsGridHandler\authorize(), PublicationDateGridHandler\authorize(), SalesRightsGridHandler\authorize(), IdentificationCodeGridHandler\authorize(), UserHandler\become(), CatalogBookHandler\book(), PKPUsageEventPlugin\buildUsageEvent(), AuthorGridRow\canAdminister(), PKPValidation\canAdminister(), CatalogEntryFormatMetadataForm\CatalogEntryFormatMetadataForm(), CatalogHandler\category(), ManageCatalogHandler\category(), CitationApiHandler\checkAllCitations(), PKPValidation\checkCredentials(), PubIdPlugin\checkDuplicate(), ScheduledTaskHelper\checkFrequency(), AdminFunctionsHandler\clearDataCache(), MonographSearchIndex\clearMonographFiles(), EditorAction\clearReview(), NotificationHandler\confirmMailListSubscription(), ReviewerAction\confirmReview(), AboutContextHandler\contact(), PKPAuthorNativeXmlFilter\createPKPAuthorNode(), PKPUserUserXmlFilter\createPKPUserNode(), MonographONIX30XmlFilter\createProductNode(), PublicationFormatNativeXmlFilter\createRepresentationNode(), CreateReviewerForm\CreateReviewerForm(), SubmissionFileNativeXmlFilter\createSubmissionFileNode(), MonographNativeXmlFilter\createSubmissionNode(), UserGroupNativeXmlFilter\createUserGroupNode(), PublicationFormatRequiredPolicy\dataObjectEffect(), ReviewAssignmentRequiredPolicy\dataObjectEffect(), ReviewRoundRequiredPolicy\dataObjectEffect(), SeriesEditorSubmissionRequiredPolicy\dataObjectEffect(), NotificationHandler\delete(), PressDAO\deleteAllPubIds(), DataObjectTombstoneDAO\deleteById(), PressDAO\deleteById(), MonographDAO\deleteById(), ReviewFormElementDAO\deleteById(), ContextDAO\deleteById(), SeriesDAO\deleteById(), NotificationDAO\deleteById(), ReviewFormDAO\deleteById(), PKPAnnouncementTypeDAO\deleteById(), ReviewAssignmentDAO\deleteById(), CategoryCategoryGridHandler\deleteCategory(), PressGridHandler\deleteContext(), PreparedEmailsGridHandler\deleteCustomEmail(), SubmissionMetadataViewForm\deleteEntry(), ChapterForm\deleteEntry(), SubmissionSubmitStep3Form\deleteEntry(), PKPManageFileApiHandler\deleteFile(), SiteSetupForm\deleteFile(), GenreGridHandler\deleteGenre(), NotificationsGridHandler\deleteNotification(), FilterGroupDAO\deleteObject(), ControlledVocabDAO\deleteObjectById(), PluginGridHandler\deletePlugin(), SeriesGridHandler\deleteSeries(), MonographSearchIndex\deleteTextIndex(), PublicationFormatTombstoneManager\deleteTombstonesByPublicationFormats(), PreparedEmailsGridHandler\disableEmail(), PKPNotificationSettingsForm\display(), NativeImportExportPlugin\display(), CatalogBookHandler\download(), FileApiHandler\downloadLibraryFile(), PKPLanguageAction\downloadLocale(), PKPAction\editCitations(), EditLibraryFileForm\EditLibraryFileForm(), SeriesAssignmentRule\effect(), SubmissionFileAssignedAuditorAccessPolicy\effect(), SubmissionFileAssignedReviewerAccessPolicy\effect(), SubmissionFileRequestedRevisionRequiredPolicy\effect(), PKPSubmissionFileRequestedRevisionRequiredPolicy\effect(), Upgrade\enableDefaultTheme(), PreparedEmailsGridHandler\enableEmail(), ControlledVocab\enumerate(), ProfileForm\execute(), RegistrationForm\execute(), PressSiteSettingsForm\execute(), NewReviewRoundForm\execute(), NewSiteCssFileForm\execute(), UserForm\execute(), LoginChangePasswordForm\execute(), EnrollExistingReviewerForm\execute(), EditLibraryFileForm\execute(), SubmissionFilesUploadConfirmationForm\execute(), PromoteForm\execute(), CatalogEntrySubmissionReviewForm\execute(), SubmissionMetadataViewForm\execute(), MastheadForm\execute(), CreateReviewerForm\execute(), NewSiteImageFileForm\execute(), NotificationSettingsForm\execute(), UnassignReviewerForm\execute(), InstallLanguageForm\execute(), NewNoteForm\execute(), ThankReviewerForm\execute(), ReviewReminderForm\execute(), ReviewerReviewStep3Form\execute(), ReviewerReviewStep1Form\execute(), GenreForm\execute(), ChapterForm\execute(), PreparedEmailForm\execute(), PublicationFormatForm\execute(), SiteSetupForm\execute(), PKPAuditorReminderForm\execute(), IdentificationCodeForm\execute(), RepresentativeForm\execute(), PKPSubmissionSubmitStep1Form\execute(), PublicationDateForm\execute(), AuthorForm\execute(), SalesRightsForm\execute(), CategoryForm\execute(), CatalogEntryFormatMetadataForm\execute(), MarketForm\execute(), ReviewerForm\execute(), MetadataPluginTestCase\executeMetadataPluginTest(), PluginTestCase\executePluginTest(), WorkflowHandler\expedite(), AdminFunctionsHandler\expireSessions(), TranslatorAction\export(), Onix30ExportPlugin\exportSubmissions(), NativeImportExportPlugin\exportSubmissions(), Dc11SchemaPublicationFormatAdapter\extractMetadataFromDataObject(), SubmissionSubmitStep1Form\fetch(), ReviewerReviewStep1Form\fetch(), SubmissionMetadataViewForm\fetch(), ProductionStageForm\fetch(), CarouselHandler\fetch(), SubmissionSubmitStep3Form\fetch(), CatalogEntryHandler\fetch(), NewNoteForm\fetch(), PKPSubmissionSubmitStep1Form\fetch(), CatalogEntryFormatMetadataForm\fetch(), ReviewerReviewForm\fetch(), IdentificationCodeForm\fetch(), PublicationFormatForm\fetch(), MarketForm\fetch(), RepresentativeForm\fetch(), SalesRightsForm\fetch(), PublicationDateForm\fetch(), AuthorForm\fetch(), ReviewerForm\fetch(), ReportGeneratorHandler\fetchArticlesInfo(), SubmissionHandler\fetchChoices(), CatalogEntryHandler\fetchFormatInfo(), NotificationHandler\fetchNotification(), AuthorDashboardReviewRoundTabHandler\fetchReviewRoundInfo(), SettingsFileUploadForm\fetchTemporaryFile(), RevisionsNotificationManager\findValidPendingRevisionsDecision(), Upgrade\fixFilenames(), PKPMetricsDAO\foreignKeyLookup(), MonographSearch\formatResults(), CatalogHandler\fullSize(), PKPValidation\generatePasswordResetHash(), SubmissionAgencyDAO\getAgencies(), PublishedMonograph\getAgents(), InterestManager\getAllInterests(), InterestDAO\getAllInterests(), PKPAnnouncement\getAnnouncementTypeName(), Market\getAssignedRepresentativeNames(), UsageStatsLoader\getAssoc(), SubmissionComment\getAuthorEmail(), SubmissionComment\getAuthorName(), Chapter\getAuthors(), Submission\getAuthors(), Submission\getAuthorString(), PKPLibraryFileManager\getBasePath(), PublicationFormat\getCalculatedFileSize(), ManageCatalogHandler\getCategories(), PublishedMonograph\getCategories(), MonographDAO\getCategories(), SeriesDAO\getCategories(), SettingsPluginGridHandler\getCategoryData(), SubmissionDocumentsFilesGridDataProvider\getCategoryData(), CategoryCategoryGridHandler\getCategoryData(), PluginGridHandler\getCategoryData(), UserGroupGridHandler\getCategoryData(), SelectableSubmissionFileListCategoryGridRow\getCategoryLabel(), ChapterGridHandler\getCategoryRowIdParameterName(), RepresentativesGridHandler\getCategoryRowInstance(), PublicationFormatGridCellProvider\getCellActions(), ReviewerGridCellProvider\getCellState(), SubmissionFile\getClientFileName(), BrowseBlockPlugin\getContents(), Application\getContextDAO(), PKPAnnouncementForm\getContextId(), Identity\getCountryLocalized(), VersionCheck\getCurrentDBVersion(), Press\getDAO(), PubIdPlugin\getDAO(), ChapterGridHandler\getDataElementSequence(), PublicationDate\getDateFormat(), OMPCompletedPayment\getDescription(), SubmissionDisciplineDAO\getDisciplines(), PKPLanguageAction\getDownloadableLocales(), SeriesEditorsDAO\getEditorsBySeriesId(), SeriesEditorsDAO\getEditorsNotInSeries(), Series\getEditorsString(), EditorDecisionActionsManager\getEditorTakenActionInReviewRound(), ControlledVocabDAO\getEntryDAO(), PublicationFormatNativeXmlFilter\getFiles(), PublicationFormat\getIdentificationCodes(), NativeXmlMonographFilter\getImportFilter(), InterestManager\getInterestsForUser(), SubmissionKeywordDAO\getKeywords(), SubmissionLanguageDAO\getLanguages(), FooterCategory\getLinks(), PublicationFormat\getMarkets(), PKPUsageStatsReportPlugin\getMetrics(), NewReleaseDAO\getMonographsByAssoc(), OMPCompletedPayment\getName(), Representative\getNameForONIXCode(), SalesRights\getNameForONIXCode(), IdentificationCode\getNameForONIXCode(), PublicationFormat\getNameForONIXCode(), NotificationStatusDAO\getNotifiableUsersByPressId(), NotificationStatusDAO\getNotifiableUsersCount(), PendingRevisionsNotificationManager\getNotificationContents(), NotificationHandler\getNotificationFeedUrl(), AuditorRequestNotificationManager\getNotificationMessage(), CopyeditAssignmentNotificationManager\getNotificationMessage(), PKPToolsHandler\getObjectTitle(), CopyeditingFilesListbuilderHandler\getOptions(), ProofFilesListbuilderHandler\getOptions(), NotifyUsersListbuilderHandler\getOptions(), Application\getPluginSettingsContextColumnName(), RoleDAO\getPressUsersRoleCount(), Submission\getPrimaryAuthor(), PublicationFormat\getPublicationDates(), PublishedMonograph\getPublicationFormats(), NativeXmlMonographFilter\getPublishedSubmissionDAO(), Application\getRepresentationDAO(), ReviewerAction\getResponseEmail(), ReviewAssignmentDAO\getReviewerStatistics(), NotifyUsersListbuilderHandler\getRowDataElement(), FilesListbuilderHandler\getRowDataElement(), PublicationFormat\getSalesRights(), MonographSearch\getSearchDao(), Application\getSectionDAO(), EmailLogEntry\getSenderEmail(), EmailLogEntry\getSenderFullName(), OAIDAO\getSeries(), ManageCatalogHandler\getSeries(), User\getSetting(), Site\getSetting(), User\getSettings(), Press\getSettingsDAO(), Handler\getSiteRedirectContext(), Spotlight\getSpotlightItem(), Application\getSubEditorDAO(), SubmissionSubjectDAO\getSubjects(), Application\getSubmissionDAO(), SubmissionFilesUploadBaseForm\getSubmissionFiles(), AssignedSubmissionsListGridHandler\getSubmissions(), UnassignedSubmissionsListGridHandler\getSubmissions(), ArchivedSubmissionsListGridHandler\getSubmissions(), SelectMonographHandler\getSubmissions(), PublishedMonograph\getSuppliers(), Handler\getTargetContext(), FileGenreGridColumn\getTemplateVarsFromRow(), NotificationsGridCellProvider\getTemplateVarsFromRowColumn(), AnnouncementGridCellProvider\getTemplateVarsFromRowColumn(), PKPLocale\getTimeZone(), OMPQueuedPayment\getType(), MonographDAO\getUnassignedCategories(), SeriesDAO\getUnassignedCategories(), Submission\getUser(), EventLogEntry\getUserEmail(), EventLogEntry\getUserFullName(), PKPAuthor\getUserGroup(), PKPUserSettingsDAO\getUsersBySetting(), SignoffDAO\getUsersBySymbolic(), Handler\getWorkingContexts(), PayPalPlugin\handle(), NativeXmlPKPAuthorFilter\handleElement(), NativeXmlUserGroupFilter\handleElement(), NativeXmlSubmissionFileFilter\handleRevisionElement(), ManageCatalogHandler\homepage(), NativeImportExportPlugin\importSubmissions(), NotificationHandler\index(), CatalogHandler\index(), MonographSearchIndex\indexMonographFiles(), MonographSearchIndex\indexMonographMetadata(), MonographSearchIndex\indexObjectKeywords(), SubmissionMetadataFormImplementation\initData(), UnassignReviewerForm\initData(), ThankReviewerForm\initData(), ReviewReminderForm\initData(), GenreForm\initData(), UserDetailsForm\initData(), PreparedEmailForm\initData(), PKPAuditorReminderForm\initData(), CatalogEntryFormatMetadataForm\initData(), ReviewerForm\initData(), PKPPreparedEmailsGridRow\initialize(), UserGridRow\initialize(), ProductionReadyFilesGridHandler\initialize(), SubmissionAgencyDAO\insertAgencies(), SubmissionDisciplineDAO\insertDisciplines(), SubmissionMetadataViewForm\insertEntry(), ChapterForm\insertEntry(), SubmissionSubmitStep3Form\insertEntry(), SubmissionKeywordDAO\insertKeywords(), SubmissionLanguageDAO\insertLanguages(), SubmissionSubjectDAO\insertSubjects(), PublicationFormatTombstoneManager\insertTombstoneByPublicationFormat(), MetadataPlugin\installData(), Installer\installEmailTemplate(), AppLocale\installLocale(), PKPLocale\installLocale(), PKPValidation\isAuthorized(), OMPPaymentManager\isConfigured(), LimitReviewFilesGridHandler\isDataElementSelected(), SubmissionFile\isInlineable(), ReviewRevisionsGridDataProvider\loadData(), ApprovedProofFilesGridDataProvider\loadData(), ReviewGridDataProvider\loadData(), ReviewerReviewFilesGridDataProvider\loadData(), NotificationsGridHandler\loadData(), SubmissionFileEventLogGridHandler\loadData(), AnnouncementGridHandler\loadData(), CategoryCategoryGridHandler\loadData(), GenreGridHandler\loadData(), UserGroupGridHandler\loadData(), NotifyUsersListbuilderHandler\loadData(), VersionInfoGridHandler\loadData(), ReviewerSelectGridHandler\loadData(), UserGridHandler\loadData(), ExportableUsersGridHandler\loadData(), SubmissionFileLog\logEvent(), SubmissionLog\logEvent(), PKPValidation\login(), PKPValidation\logout(), MailTemplate\MailTemplate(), PubIdPlugin\manage(), UserAction\mergeUsers(), CatalogHandler\newReleases(), NotificationHandler\notificationFeed(), NativeXmlSubmissionFilter\parseAuthor(), UserXmlPKPUserFilter\parseUser(), UserXmlPKPUserFilter\parseUserGroup(), NativeXmlMonographFilter\populateObject(), MonographONIX30XmlFilter\process(), WorkflowHandler\production(), WorkflowHandler\productionFormatsTab(), PublicationDateForm\PublicationDateForm(), CatalogEntryTabHandler\publicationMetadata(), SubmissionSubmitStep3Form\readInputData(), ManageSubmissionFilesForm\readInputData(), PreparedEmailForm\readInputData(), SeriesForm\readInputData(), PKPAuthorDashboardHandler\readSubmissionEmail(), MonographSearchIndex\rebuildIndex(), EditorAction\recordDecision(), PKPValidation\registerUserSession(), WebsiteSettingsTabHandler\reloadLocalizedDefaultSettings(), MonographDAO\removeCategory(), UserGridHandler\removeUser(), UserGridHandler\renderFilter(), ExportableUsersGridHandler\renderFilter(), RepresentativeForm\RepresentativeForm(), PKPLoginHandler\requestResetPassword(), PreparedEmailsGridHandler\resetAllEmails(), PreparedEmailsGridHandler\resetEmail(), PKPLoginHandler\resetPassword(), RevisionsNotificationManager\responseExists(), GenreGridHandler\restoreGenres(), ReviewAssignmentDAO\ReviewAssignmentDAO(), ReviewerSubmissionDAO\ReviewerSubmissionDAO(), SalesRightsForm\SalesRightsForm(), ManageCatalogHandler\search(), CatalogHandler\series(), ManageCatalogHandler\series(), SeriesEditorSubmissionDAO\SeriesEditorSubmissionDAO(), SeriesGridHandler\setDataElementSequence(), GenreGridHandler\setDataElementSequence(), EditorAction\setDueDates(), InterestManager\setInterestsForUser(), WebTestCase\setUp(), ProcessDAOTest\setUp(), Nlm30XmlFilterTestCase\setUp(), PKPTestCase\setUp(), AuthorSignoffFilesGridDataProvider\setUserId(), Session\setUserId(), InterestDAO\setUserInterests(), LoginHandler\signInAsUser(), LoginHandler\signOutAsUser(), SiteSetupForm\SiteSetupForm(), PKPAuthorDashboardHandler\submission(), AuthorDashboardHandler\submission(), WorkflowHandler\submissionProgressBar(), AboutContextHandler\submissions(), PKPValidation\suggestUsername(), Upgrade\syncSeriesAssocType(), AdminFunctionsHandler\systemInfo(), DashboardHandler\tasks(), TemplateManager\TemplateManager(), CitationDAOTest\testCitationCrud(), FilterDAOTest\testFilterCrud(), FilterGroupDAOTest\testFilterGroupCrud(), PKPIsbndbCitationLookupPluginTest\testIsbndbCitationLookupPlugin(), MetadataDescriptionDAOTest\testMetadataDescriptionCrud(), PKPProcessAccessPolicyTest\testPKPProcessAccessPolicy(), PKPComponentRouterTest\testRoute(), CatalogHandler\thumbnail(), ManageCatalogHandler\toggle(), PKPUserHandler\toggleHelp(), AppLocale\uninstallLocale(), PKPLocale\uninstallLocale(), NotificationHandler\unsubscribeMailList(), PressGridHandler\updateContext(), MonographSearchIndex\updateFileIndex(), AllRevisionsInNotificationManager\updateNotification(), ApproveSubmissionNotificationManager\updateNotification(), AllReviewsInNotificationManager\updateNotification(), CopyeditAssignmentNotificationManager\updateNotification(), AuditorRequestNotificationManager\updateNotification(), SignoffNotificationManager\updateNotification(), EditorAssignmentNotificationManager\updateNotification(), EditorDecisionNotificationManager\updateNotification(), PendingRevisionsNotificationManager\updateNotification(), SeriesEditorSubmissionDAO\updateSeriesEditorSubmission(), User\updateSetting(), Site\updateSetting(), ReviewRoundDAO\updateStatus(), MonographSearchIndex\updateTextIndex(), UserApiHandler\updateUserMessageState(), PKPSubmissionSubmitStep1Form\validate(), SubmissionSubmitStep1Form\validate(), PKPSubmissionFilesUploadForm\validate(), and PKPSubmissionInformationCenterHandler\viewInformationCenter().

static& DAORegistry::getDAOs ( )
static

Get the current list of registered DAOs. This returns a reference to the static hash used to store all DAOs currently instantiated by the system.

Returns
array

Definition at line 28 of file DAORegistry.inc.php.

References Registry\get().

Referenced by getDAO(), and registerDAO().

static DAORegistry::registerDAO (   $name,
  $dao 
)
static

Register a new DAO with the system.

Parameters
$namestring The name of the DAO to register
$daoobject A reference to the DAO to be registered
Returns
object A reference to previously-registered DAO of the same name, if one was already registered; null otherwise

Definition at line 40 of file DAORegistry.inc.php.

References getDAOs().

Referenced by PKPRouterTestCase\_setUpMockDAOs(), PayPalPlugin\register(), PKPTestCase\tearDown(), PKPRouterTestCase\testGetContext(), FormValidatorControlledVocabTest\testIsValid(), and ValidatorControlledVocabTest\testValidatorControlledVocab().


The documentation for this class was generated from the following file: