Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($dataSource=null, $callHooks=true) | |
concat () | |
convertFromDB ($value, $type) | |
convertToDB ($value, &$type) | |
dateFromDB ($d) | |
datetimeFromDB ($dt) | |
datetimeToDB ($dt) | |
dateToDB ($d) | |
flushCache () | |
formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true) | |
getAdditionalFieldNames () | |
getAffectedRows () | |
getDataObjectSettings ($tableName, $idFieldName, $idFieldValue, $dataObject) | |
getDataSource () | |
getDirectionMapping ($direction) | |
getDriver () | |
getLocaleFieldNames () | |
getType ($value) | |
handleError ($dataSource, $sql) | |
nullOrInt ($value) | |
replace ($table, $arrFields, $keyCols) | |
& | retrieve ($sql, $params=false, $callHooks=true) |
& | retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true) |
& | retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true) |
& | retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true) |
setCacheDir () | |
setDataSource ($dataSource) | |
update ($sql, $params=false, $callHooks=true, $dieOnError=true) | |
updateDataObjectSettings ($tableName, $dataObject, $idArray) | |
Static Public Member Functions | |
static | getDataChangedEvent ($elementId=null, $parentElementId=null, $content='') |
Data Fields | |
$_dataSource | |
Protected Member Functions | |
_getInsertId ($table='', $id='') | |
Operations for retrieving and modifying objects from a database.
Definition at line 31 of file DAO.inc.php.
DAO::__construct | ( | $dataSource = null , |
|
$callHooks = true |
|||
) |
Constructor. Initialize the database connection.
Definition at line 63 of file DAO.inc.php.
References HookRegistry\call(), DBConnection\getConn(), setDataSource(), and strtolower_codesafe().
|
protected |
Return the last ID inserted in an autonumbered field.
$table | string table name |
$id | string the ID/key column in the table |
Definition at line 255 of file DAO.inc.php.
References getDataSource().
Referenced by QueuedPaymentDAO\getInsertId(), SubscriptionDAO\getInsertId(), OJSCompletedPaymentDAO\getInsertId(), MarkupJobInfoDAO\getInsertId(), DepositDAO\getInsertId(), PKPAuthorDAO\getInsertId(), SubmissionCommentDAO\getInsertId(), StaticPagesDAO\getInsertId(), TemporaryFileDAO\getInsertId(), UserGroupDAO\getInsertId(), DataObjectTombstoneDAO\getInsertId(), EventLogDAO\getInsertId(), IssueFileDAO\getInsertId(), EmailLogDAO\getInsertId(), PKPSubmissionDAO\getInsertId(), AccessKeyDAO\getInsertId(), NavigationMenuDAO\getInsertId(), ReviewRoundDAO\getInsertId(), NotificationDAO\getInsertId(), LibraryFileDAO\getInsertId(), DepositPointDAO\getInsertId(), AnnouncementTypeDAO\getInsertId(), AnnouncementDAO\getInsertId(), NoteDAO\getInsertId(), NavigationMenuItemAssignmentDAO\getInsertId(), StageAssignmentDAO\getInsertId(), NavigationMenuItemDAO\getInsertId(), DepositObjectDAO\getInsertId(), ReviewFormElementDAO\getInsertId(), ReviewFormDAO\getInsertId(), QueryDAO\getInsertId(), GenreDAO\getInsertId(), SubscriptionTypeDAO\getInsertId(), IssueDAO\getInsertId(), IssueGalleyDAO\getInsertId(), CategoryDAO\getInsertId(), SectionDAO\getInsertId(), ReviewAssignmentDAO\getInsertId(), UserDAO\getInsertId(), SubmissionSearchDAO\insertKeyword(), SubmissionFileDAODelegate\insertObject(), SubmissionSearchDAO\insertObject(), and AuthSourceDAO\insertObject().
DAO::concat | ( | ) |
Concatenation.
Definition at line 54 of file DAO.inc.php.
References getDataSource().
Referenced by UserGroupDAO\_getSearchSql().
DAO::convertFromDB | ( | $value, | |
$type | |||
) |
Convert a stored type from the database
$value | string Value from DB |
$type | string Type from DB |
Definition at line 341 of file DAO.inc.php.
Referenced by EmailTemplateDAO\_fromRow(), ReviewFormResponseDAO\_returnReviewFormResponseFromRow(), EventLogDAO\build(), ControlledVocabDAO\enumerate(), getDataObjectSettings(), NotificationSettingsDAO\getNotificationSettings(), PluginSettingsDAO\getPluginSettings(), DataObjectTombstoneSettingsDAO\getSetting(), UserSettingsDAO\getSetting(), NavigationMenuItemDAO\getSetting(), UserGroupDAO\getSetting(), UserSettingsDAO\getSettingsByContextId(), and SettingsDAO\loadSettings().
DAO::convertToDB | ( | $value, | |
& | $type | ||
) |
Convert a PHP variable into a string to be stored in the DB
$value | mixed |
$type | string |
Definition at line 401 of file DAO.inc.php.
References getType().
Referenced by UserSettingsDAO\getUsersBySetting(), ReviewFormResponseDAO\insertObject(), EventLogDAO\insertObject(), updateDataObjectSettings(), NotificationSettingsDAO\updateNotificationSetting(), ReviewFormResponseDAO\updateObject(), DataObjectTombstoneSettingsDAO\updateSetting(), UserSettingsDAO\updateSetting(), PluginSettingsDAO\updateSetting(), SettingsDAO\updateSetting(), NavigationMenuItemDAO\updateSetting(), and UserGroupDAO\updateSetting().
DAO::dateFromDB | ( | $d | ) |
Return date from DB as ISO date string.
$d | string date from DB |
Definition at line 329 of file DAO.inc.php.
References getDataSource().
Referenced by SubscriptionDAO\_fromRow().
DAO::datetimeFromDB | ( | $dt | ) |
Return datetime from DB as ISO datetime string.
$dt | string datetime from DB |
Definition at line 319 of file DAO.inc.php.
References getDataSource().
Referenced by PKPOAIDAO\_doCommonOAIFromRowOperations(), DataObjectTombstoneDAO\_fromRow(), IssueFileDAO\_fromRow(), ReviewerSubmissionDAO\_fromRow(), SubmissionCommentDAO\_fromRow(), LibraryFileDAO\_fromRow(), DepositDAO\_fromRow(), NoteDAO\_fromRow(), OJSCompletedPaymentDAO\_fromRow(), IssueGalleyDAO\_fromRow(), NotificationDAO\_fromRow(), IssueDAO\_fromRow(), DepositObjectDAO\_fromRow(), ReviewAssignmentDAO\_fromRow(), AccessKeyDAO\_returnAccessKeyFromRow(), TemporaryFileDAO\_returnTemporaryFileFromRow(), VersionDAO\_returnVersionFromRow(), EventLogDAO\build(), EmailLogDAO\build(), SubmissionFileDAODelegate\fromRow(), ScheduledTaskDAO\getLastRunTime(), and ArticleSearchDAO\getPhraseResults().
DAO::datetimeToDB | ( | $dt | ) |
Return datetime formatted for DB insertion.
$dt | int/string *nix timestamp or ISO datetime string |
Definition at line 299 of file DAO.inc.php.
References getDataSource().
Referenced by SubscriptionDAO\_generateSearchSQL(), OAIDAO\_getRecordsRecordSet(), SubscriptionDAO\_insertObject(), SubscriptionDAO\_updateObject(), AccessKeyDAO\deleteExpiredKeys(), AccessKeyDAO\getAccessKey(), AccessKeyDAO\getAccessKeyByKeyHash(), AccessKeyDAO\getAccessKeyByUserId(), TemporaryFileDAO\getExpiredFiles(), ArticleSearchDAO\getPhraseResults(), SubmissionFileDAODelegate\insertObject(), QueuedPaymentDAO\insertObject(), OJSCompletedPaymentDAO\insertObject(), DepositDAO\insertObject(), TemporaryFileDAO\insertObject(), IssueFileDAO\insertObject(), EventLogDAO\insertObject(), AccessKeyDAO\insertObject(), NotificationDAO\insertObject(), EmailLogDAO\insertObject(), DataObjectTombstoneDAO\insertObject(), SubmissionCommentDAO\insertObject(), NoteDAO\insertObject(), StageAssignmentDAO\insertObject(), DepositObjectDAO\insertObject(), ReviewAssignmentDAO\insertObject(), IssueDAO\insertObject(), VersionDAO\insertVersion(), NotificationDAO\setDateRead(), EditDecisionDAO\updateEditorDecision(), ScheduledTaskDAO\updateLastRunTime(), QueuedPaymentDAO\updateObject(), OJSCompletedPaymentDAO\updateObject(), DepositDAO\updateObject(), TemporaryFileDAO\updateObject(), SubmissionFileDAODelegate\updateObject(), IssueFileDAO\updateObject(), AccessKeyDAO\updateObject(), DataObjectTombstoneDAO\updateObject(), LibraryFileDAO\updateObject(), SubmissionCommentDAO\updateObject(), NoteDAO\updateObject(), StageAssignmentDAO\updateObject(), DepositObjectDAO\updateObject(), ReviewAssignmentDAO\updateObject(), IssueDAO\updateObject(), and ReviewerSubmissionDAO\updateReviewerSubmission().
DAO::dateToDB | ( | $d | ) |
Return date formatted for DB insertion.
$d | int/string *nix timestamp or ISO date string |
Definition at line 309 of file DAO.inc.php.
References getDataSource().
Referenced by SubscriptionDAO\_insertObject(), SubscriptionDAO\_updateObject(), IndividualSubscriptionDAO\isValidIndividualSubscription(), and InstitutionalSubscriptionDAO\isValidInstitutionalSubscription().
DAO::flushCache | ( | ) |
Flush the system cache.
Reimplemented in IssueDAO, and PKPSubmissionDAO.
Definition at line 288 of file DAO.inc.php.
References getDataSource(), and setCacheDir().
Referenced by PKPPublicationDAO\changePubId(), SubmissionFileDAODelegate\changePubId(), ArticleGalleyDAO\deleteAllPubIds(), PKPPublicationDAO\deleteAllPubIds(), SubmissionFileDAODelegate\deleteAllPubIds(), ArticleGalleyDAO\deletePubId(), PKPPublicationDAO\deletePubId(), and SubmissionFileDAODelegate\deletePubId().
DAO::formatDateToDB | ( | $date, | |
$defaultNumWeeks = null , |
|||
$acceptPastDate = true |
|||
) |
Format a passed date (in English textual datetime) to Y-m-d H:i:s format, used in database.
$date | string Any English textual datetime. |
$defaultNumWeeks | int If passed and date is null, used to calculate a data in future from today. |
$acceptPastDate | boolean Will not accept past dates, returning today if false and the passed date is in the past. |
Definition at line 676 of file DAO.inc.php.
DAO::getAdditionalFieldNames | ( | ) |
Get a list of additional field names to store in this DAO. This can be used to extend the table with virtual "columns", typically using the ..._settings table.
Reimplemented in FilterDAO, UserDAO, IssueDAO, SubmissionFileDAODelegate, IssueGalleyDAO, UserGroupDAO, CategoryDAO, NavigationMenuItemDAO, CitationDAO, SupplementaryFileDAODelegate, and InterestEntryDAO.
Definition at line 454 of file DAO.inc.php.
References HookRegistry\call(), and strtolower_codesafe().
Referenced by updateDataObjectSettings().
DAO::getAffectedRows | ( | ) |
Return the number of affected rows by the last UPDATE or DELETE.
Definition at line 264 of file DAO.inc.php.
References getDataSource().
Referenced by DataObjectTombstoneDAO\deleteById(), EventLogDAO\deleteById(), NotificationDAO\deleteById(), QueryDAO\deleteById(), CategoryDAO\deleteById(), IssueGalleyDAO\deleteById(), DataObjectTombstoneDAO\deleteOAISetObjects(), and ScheduledTaskDAO\updateLastRunTime().
|
static |
Generate a JSON message with an event that can be sent to the client to refresh itself according to changes in the DB.
$elementId | string (Optional) To refresh a single element give the element ID here. Otherwise all elements will be refreshed. |
$parentElementId | string (Optional) To refresh a single element that is associated with another one give the parent element ID here. |
$content | mixed (Optional) Additional content to pass back to the handler of the JSON message. |
Definition at line 647 of file DAO.inc.php.
Referenced by PKPEditorDecisionHandler\_saveEditorDecision(), ReviewFormGridHandler\activateReviewForm(), SectionGridHandler\activateSection(), QueriesGridHandler\closeQuery(), ReviewFormGridHandler\copyReviewForm(), ReviewFormGridHandler\deactivateReviewForm(), SectionGridHandler\deactivateSection(), SwordDepositPointsGridHandler\delete(), StaticPageGridHandler\delete(), IssueGalleyGridHandler\delete(), AnnouncementTypeGridHandler\deleteAnnouncementType(), AuthorGridHandler\deleteAuthor(), CategoryCategoryGridHandler\deleteCategory(), ContextGridHandler\deleteContext(), CustomBlockGridHandler\deleteCustomBlock(), PKPManageFileApiHandler\deleteFile(), LibraryFileGridHandler\deleteFile(), ArticleGalleyGridHandler\deleteGalley(), GenreGridHandler\deleteGenre(), IssueGridHandler\deleteIssue(), SubmissionChecklistGridHandler\deleteItem(), NavigationMenusGridHandler\deleteNavigationMenu(), NavigationMenuItemsGridHandler\deleteNavigationMenuItem(), QueryNotesGridHandler\deleteNote(), NotificationsGridHandler\deleteNotifications(), StageParticipantGridHandler\deleteParticipant(), PluginGridHandler\deletePlugin(), QueriesGridHandler\deleteQuery(), ReviewFormGridHandler\deleteReviewForm(), ReviewFormElementsGridHandler\deleteReviewFormElement(), SectionGridHandler\deleteSection(), IndividualSubscriptionsGridHandler\deleteSubscription(), InstitutionalSubscriptionsGridHandler\deleteSubscription(), SubscriptionTypesGridHandler\deleteSubscriptionType(), PluginGridHandler\disable(), AdminLanguageGridHandler\disableLocale(), UserGridHandler\disableUser(), PluginGridHandler\enable(), FileApiHandler\enableLinkAction(), AdminLanguageGridHandler\enableLocale(), UploadImageForm\execute(), QueryNotesGridHandler\insertNote(), PKPAcronPlugin\manage(), NotificationsGridHandler\markNew(), NotificationsGridHandler\markRead(), QueriesGridHandler\openQuery(), IssueGridHandler\publishIssue(), ManageLanguageGridHandler\reloadLocale(), TocGridHandler\removeArticle(), UserGridHandler\removeUser(), UserGroupGridHandler\removeUserGroup(), SubscriptionsGridHandler\renewSubscription(), PLNStatusGridHandler\resetDeposit(), GenreGridHandler\restoreGenres(), PKPReviewerGridHandler\reviewRead(), LibraryFileGridHandler\saveFile(), AdminLanguageGridHandler\saveInstallLocale(), LanguageGridHandler\saveLanguageSetting(), PKPManageFileApiHandler\saveMetadata(), StageParticipantGridHandler\saveParticipant(), GridHandler\saveSequence(), PKPReviewerHandler\saveStep(), CriticalTimesIssueTocHandler\saveToc(), PluginGridHandler\saveUploadPlugin(), TocGridHandler\setAccessStatus(), LanguageGridHandler\setContextPrimaryLocale(), AdminLanguageGridHandler\setPrimaryLocale(), PKPReviewerGridHandler\thankReviewer(), PKPReviewerGridHandler\unconsiderReview(), AdminLanguageGridHandler\uninstallLocale(), IssueGalleyGridHandler\update(), IssueGridHandler\updateAccess(), AnnouncementTypeGridHandler\updateAnnouncementType(), AuthorGridHandler\updateAuthor(), CategoryCategoryGridHandler\updateCategory(), ManageCopyeditFilesGridHandler\updateCopyeditFiles(), CustomBlockGridHandler\updateCustomBlock(), SwordDepositPointsGridHandler\updateDepositPoint(), LibraryFileGridHandler\updateFile(), ManageFinalDraftFilesGridHandler\updateFinalDraftFiles(), ArticleGalleyGridHandler\updateGalley(), GenreGridHandler\updateGenre(), ManageFileApiHandler\updateIdentifiers(), ArticleGalleyGridHandler\updateIdentifiers(), IssueGridHandler\updateIdentifiers(), IssueGridHandler\updateIssue(), SubmissionChecklistGridHandler\updateItem(), NavigationMenusGridHandler\updateNavigationMenu(), NavigationMenuItemsGridHandler\updateNavigationMenuItem(), ManageProofFilesGridHandler\updateProofFiles(), QueriesGridHandler\updateQuery(), ManageQueryNoteFilesGridHandler\updateQueryNoteFiles(), PKPReviewerGridHandler\updateReinstateReviewer(), PKPReviewerGridHandler\updateReview(), PKPReviewerGridHandler\updateReviewer(), ManageReviewFilesGridHandler\updateReviewFiles(), ReviewFormGridHandler\updateReviewForm(), ReviewFormElementsGridHandler\updateReviewFormElement(), SectionGridHandler\updateSection(), StaticPageGridHandler\updateStaticPage(), IndividualSubscriptionsGridHandler\updateSubscription(), InstitutionalSubscriptionsGridHandler\updateSubscription(), SubscriptionTypesGridHandler\updateSubscriptionType(), PKPReviewerGridHandler\updateUnassignReviewer(), UserGridHandler\updateUser(), UserGroupGridHandler\updateUserGroup(), and UserGridHandler\updateUserRoles().
DAO::getDataObjectSettings | ( | $tableName, | |
$idFieldName, | |||
$idFieldValue, | |||
$dataObject | |||
) |
Get contents of the _settings table, storing entries in the specified data object.
$tableName | string Settings table name |
$idFieldName | string Name of ID column |
$dataObject | DataObject Object in which to store retrieved values |
Definition at line 582 of file DAO.inc.php.
References convertFromDB(), and retrieve().
Referenced by ReviewFormElementDAO\_fromRow(), DepositPointDAO\_fromRow(), ReviewFormDAO\_fromRow(), ControlledVocabEntryDAO\_fromRow(), LibraryFileDAO\_fromRow(), NavigationMenuItemAssignmentDAO\_fromRow(), SubscriptionTypeDAO\_fromRow(), CategoryDAO\_fromRow(), StaticPagesDAO\_fromRow(), AnnouncementTypeDAO\_fromRow(), NavigationMenuItemDAO\_fromRow(), SectionDAO\_fromRow(), GenreDAO\_fromRow(), CitationDAO\_fromRow(), IssueGalleyDAO\_fromRow(), IssueDAO\_fromRow(), FilterDAO\_fromRow(), UserGroupDAO\_returnFromRow(), and SubmissionFileDAODelegate\fromRow().
DAO::getDataSource | ( | ) |
Get db conn.
Definition at line 39 of file DAO.inc.php.
References $_dataSource.
Referenced by _getInsertId(), SubmissionSearchDAO\clearIndex(), concat(), dateFromDB(), datetimeFromDB(), datetimeToDB(), dateToDB(), flushCache(), getAffectedRows(), replace(), retrieve(), retrieveCached(), retrieveLimit(), retrieveRange(), and update().
DAO::getDirectionMapping | ( | $direction | ) |
Get the driver for this connection.
$direction | int |
Definition at line 621 of file DAO.inc.php.
DAO::getDriver | ( | ) |
Get the driver for this connection.
Definition at line 611 of file DAO.inc.php.
References DBConnection\getInstance().
Referenced by PKPPublicationDAO\deleteAllPubIds().
DAO::getLocaleFieldNames | ( | ) |
Get locale field names. Like getAdditionalFieldNames, but for localized (multilingual) fields.
Reimplemented in FilterDAO, UserDAO, IssueDAO, SubmissionFileDAODelegate, NavigationMenuItemAssignmentDAO, SectionDAO, IssueGalleyDAO, UserGroupDAO, StaticPagesDAO, SubscriptionTypeDAO, CategoryDAO, GenreDAO, NavigationMenuItemDAO, NavigationMenuDAO, DepositPointDAO, AnnouncementTypeDAO, ControlledVocabEntryDAO, ReviewFormDAO, SupplementaryFileDAODelegate, LibraryFileDAO, ReviewFormElementDAO, PKPSectionDAO, SubmissionDisciplineDAO, SubmissionKeywordDAO, SubmissionLanguageDAO, SubmissionSubjectDAO, ContextDAO, and SubmissionAgencyDAO.
Definition at line 471 of file DAO.inc.php.
References HookRegistry\call(), and strtolower_codesafe().
Referenced by updateDataObjectSettings().
DAO::getType | ( | $value | ) |
Get the type of a value to be stored in the database
$value | string |
Definition at line 375 of file DAO.inc.php.
Referenced by convertToDB().
DAO::handleError | ( | $dataSource, | |
$sql | |||
) |
Definition at line 702 of file DAO.inc.php.
Referenced by retrieve(), retrieveCached(), retrieveLimit(), retrieveRange(), and update().
DAO::nullOrInt | ( | $value | ) |
Cast the given parameter to an int, or leave it null.
$value | mixed |
Definition at line 444 of file DAO.inc.php.
Referenced by IssueDAO\issueExists().
DAO::replace | ( | $table, | |
$arrFields, | |||
$keyCols | |||
) |
Insert a row in a table, replacing an existing row if necessary.
$table | string |
$arrFields | array Associative array of colName => value |
$keyCols | array Array of column names that are keys |
Definition at line 243 of file DAO.inc.php.
References getDataSource().
Referenced by EmailLogDAO\_insertLogUserIds(), ArticleGalleyDAO\changePubId(), PKPPublicationDAO\changePubId(), SubmissionFileDAODelegate\changePubId(), IssueDAO\changePubId(), UserGroupAssignmentDAO\insertObject(), ViewsDAO\recordView(), updateDataObjectSettings(), NotificationSettingsDAO\updateNotificationSetting(), DataObjectTombstoneSettingsDAO\updateSetting(), PluginSettingsDAO\updateSetting(), SettingsDAO\updateSetting(), NavigationMenuItemDAO\updateSetting(), and UserGroupDAO\updateSetting().
& DAO::retrieve | ( | $sql, | |
$params = false , |
|||
$callHooks = true |
|||
) |
Execute a SELECT SQL statement.
$sql | string the SQL statement |
$params | array parameters for the SQL statement |
Definition at line 85 of file DAO.inc.php.
References HookRegistry\call(), getDataSource(), handleError(), Core\microtime(), and strtolower_codesafe().
Referenced by FilterDAO\_deleteSubFiltersByParentFilterId(), EmailTemplateDAO\_fromRow(), InstitutionalSubscriptionDAO\_fromRow(), StageAssignmentDAO\_getByIds(), UsageStatsTemporaryRecordDAO\_getGrouped(), OAIDAO\_getRecordsRecordSet(), ReviewAssignmentDAO\_getReviewAssignmentsArray(), UserStageAssignmentDAO\_getUsersByIds(), FilterDAO\_populateSubFilters(), AnnouncementTypeDAO\announcementTypeExistsByTypeId(), EventLogDAO\build(), CategoryDAO\categoryExistsByPath(), UserDAO\changeSitePrimaryLocale(), ReviewFilesDAO\check(), UserGroupDAO\contextHasGroup(), DepositObjectDAO\createNew(), IssueDAO\customIssueOrderingExists(), SectionDAO\customSectionOrderingExists(), UserGroupAssignmentDAO\deleteAssignmentsByContextId(), UserGroupDAO\deleteByContextId(), SubscriptionTypeDAO\deleteByJournal(), IndividualSubscriptionDAO\deleteByJournalId(), InstitutionalSubscriptionDAO\deleteByJournalId(), ReviewAssignmentDAO\deleteBySubmissionId(), IndividualSubscriptionDAO\deleteByTypeId(), InstitutionalSubscriptionDAO\deleteByTypeId(), IndividualSubscriptionDAO\deleteByUserId(), InstitutionalSubscriptionDAO\deleteByUserId(), IndividualSubscriptionDAO\deleteByUserIdForJournal(), InstitutionalSubscriptionDAO\deleteByUserIdForJournal(), SubmissionFileDAODelegate\deleteObject(), SubmissionSearchDAO\deleteSubmissionKeywords(), DepositPointDAO\depositPointExists(), StageAssignmentDAO\editorAssignedToStage(), SubEditorsDAO\editorExists(), ControlledVocabDAO\enumerate(), ContextDAO\existsByPath(), LibraryFileDAO\filenameExists(), AccessKeyDAO\getAccessKey(), AccessKeyDAO\getAccessKeyByKeyHash(), AccessKeyDAO\getAccessKeyByUserId(), SubmissionAgencyDAO\getAllUniqueAgencies(), SubmissionDisciplineDAO\getAllUniqueDisciplines(), SubmissionKeywordDAO\getAllUniqueKeywords(), SubmissionLanguageDAO\getAllUniqueLanguages(), SubmissionSubjectDAO\getAllUniqueSubjects(), AnnouncementDAO\getAnnouncementAssocId(), AnnouncementDAO\getAnnouncementAssocType(), AnnouncementTypeDAO\getAnnouncementTypeAssocId(), AnnouncementTypeDAO\getAnnouncementTypeName(), UserGroupDAO\getAssignedStagesByUserGroupId(), SectionDAO\getByAbbrev(), NavigationMenuDAO\getByArea(), QueryDAO\getByAssoc(), NoteDAO\getByAssoc(), OJSCompletedPaymentDAO\getByAssoc(), ArticleGalleyDAO\getByBestGalleyId(), IssueGalleyDAO\getByBestId(), IssueDAO\getByBestId(), LibraryFileDAO\getByContextId(), NavigationMenuDAO\getByContextId(), NavigationMenuItemDAO\getByContextId(), ArticleGalleyDAO\getByContextId(), ControlledVocabEntryDAO\getByContextId(), PKPSubmissionDAO\getByContextId(), DataObjectTombstoneDAO\getByDataObjectId(), DepositObjectDAO\getByDepositId(), ArticleGalleyDAO\getByFileId(), DepositObjectDAO\getById(), StaticPagesDAO\getById(), NavigationMenuItemDAO\getById(), StageAssignmentDAO\getById(), GenreDAO\getById(), IndividualSubscriptionDAO\getById(), OJSCompletedPaymentDAO\getById(), CategoryDAO\getById(), QueuedPaymentDAO\getById(), IssueGalleyDAO\getById(), LibraryFileDAO\getById(), NotificationDAO\getById(), ReviewFormElementDAO\getById(), EventLogDAO\getById(), NavigationMenuItemAssignmentDAO\getById(), QueryDAO\getById(), ReviewFormDAO\getById(), EmailLogDAO\getById(), DepositDAO\getById(), InstitutionalSubscriptionDAO\getById(), ControlledVocabDAO\getById(), SubscriptionTypeDAO\getById(), NavigationMenuDAO\getById(), ControlledVocabEntryDAO\getById(), DataObjectTombstoneDAO\getById(), AnnouncementTypeDAO\getById(), NoteDAO\getById(), UserDAO\getById(), DepositPointDAO\getById(), IssueFileDAO\getById(), PKPAuthorDAO\getById(), IssueDAO\getById(), SchemaDAO\getById(), SectionDAO\getById(), AnnouncementDAO\getById(), CitationDAO\getById(), SubmissionCommentDAO\getById(), ReviewAssignmentDAO\getById(), ReviewRoundDAO\getById(), UserGroupDAO\getById(), InterestEntryDAO\getByIds(), IssueGalleyDAO\getByIssueId(), SectionDAO\getByIssueId(), GenreDAO\getByKey(), NavigationMenuItemAssignmentDAO\getByMenuId(), NavigationMenuItemDAO\getByMenuId(), NavigationMenuItemAssignmentDAO\getByMenuIdAndParentId(), NavigationMenuItemAssignmentDAO\getByMenuItemId(), NavigationMenuItemAssignmentDAO\getByNMIIdAndMenuIdAndParentId(), NavigationMenuItemDAO\getByPath(), CategoryDAO\getByPath(), ContextDAO\getByPath(), StaticPagesDAO\getByPath(), IssueGalleyDAO\getByPubId(), PKPSubmissionDAO\getByPubId(), PKPAuthorDAO\getByPublicationId(), CategoryDAO\getByPublicationId(), ArticleGalleyDAO\getByPublicationId(), ReviewAssignmentDAO\getByReviewFormId(), ControlledVocabEntryDAO\getBySetting(), UserDAO\getBySetting(), IssueDAO\getBySetting(), ContextDAO\getBySetting(), ReviewRoundDAO\getBySubmissionFileId(), SubEditorsDAO\getBySubmissionGroupId(), LibraryFileDAO\getBySubmissionId(), SectionDAO\getBySubmissionId(), ReviewRoundDAO\getBySubmissionId(), IssueDAO\getBySubmissionId(), ControlledVocabDAO\getBySymbolic(), CategoryDAO\getByTitle(), NavigationMenuDAO\getByTitle(), SectionDAO\getByTitle(), NavigationMenuItemDAO\getByType(), NavigationMenuItemDAO\getByTypeAndTitleLocaleKey(), AnnouncementTypeDAO\getByTypeName(), StageAssignmentDAO\getByUserGroupId(), SubmissionCommentDAO\getByUserId(), UserGroupAssignmentDAO\getByUserId(), RoleDAO\getByUserId(), ReviewAssignmentDAO\getByUserId(), UserGroupDAO\getByUserId(), UserDAO\getByUsername(), DepositDAO\getByUUID(), UserGroupDAO\getContextUsersCount(), CategoryDAO\getCountByContextId(), IssueDAO\getCurrent(), VersionDAO\getCurrentProducts(), ReviewRoundDAO\getCurrentRoundBySubmissionId(), VersionDAO\getCurrentVersion(), IssueDAO\getCustomIssueOrder(), SectionDAO\getCustomSectionOrder(), getDataObjectSettings(), AuthSourceDAO\getDefaultSource(), EditDecisionDAO\getEditorDecisions(), SectionDAO\getEditorSections(), SectionDAO\getEmptyByJournalId(), TemporaryFileDAO\getExpiredFiles(), SubmissionFileDAO\getFileIdsBySetting(), ArticleGalleyDAO\getGalleysBySetting(), ReviewAssignmentDAO\getIncompleteReviewAssignments(), IssueDAO\getIssuesByIdentification(), ScheduledTaskDAO\getLastRunTime(), ViewsDAO\getLastViewDate(), SubmissionFileDAO\getLatestRevisionNumber(), PKPMetricsDAO\getLoadId(), MarkupJobInfoDAO\getMarkupJobInfo(), MarkupJobInfoDAO\getMarkupJobInfobyFileId(), PKPMetricsDAO\getMetrics(), AnnouncementDAO\getMostRecentAnnouncementByAssocId(), DepositDAO\getNeedPackaging(), DepositDAO\getNeedStagingStatusUpdate(), DepositDAO\getNeedTransferring(), DepositObjectDAO\getNew(), DepositDAO\getNew(), IssueGalleyDAO\getNextGalleySequence(), NotificationDAO\getNotificationCount(), NotificationSettingsDAO\getNotificationSettings(), NotificationSubscriptionSettingsDAO\getNotificationSubscriptionSettings(), IssueDAO\getNumArticles(), DataObjectTombstoneDAO\getOAISetObjectsIds(), FilterGroupDAO\getObjectById(), FilterDAO\getObjectById(), FilterGroupDAO\getObjectBySymbolic(), FilterDAO\getObjectsByClass(), FilterDAO\getObjectsByGroup(), FilterDAO\getObjectsByGroupAndClass(), FilterDAO\getObjectsByTypeDescription(), QueryDAO\getParticipantIds(), UserGroupDAO\getPermitMetadataEditGroupIds(), PluginSettingsDAO\getPluginSettings(), IssueDAO\getPublishedIssuesByNumber(), UserGroupDAO\getRecommendOnlyGroupIds(), ReviewFormElementDAO\getRequiredReviewFormElementIds(), ReviewAssignmentDAO\getReviewAssignment(), SubmissionCommentDAO\getReviewerCommentsByReviewerId(), UserDAO\getReviewersForSubmission(), ReviewerSubmissionDAO\getReviewerSubmission(), ReviewFormResponseDAO\getReviewFormResponse(), ReviewAssignmentDAO\getReviewIndexesForRound(), ReviewReportDAO\getReviewReport(), ReviewRoundDAO\getReviewRound(), NotificationSubscriptionSettingsDAO\getRSSTokenByUserId(), SessionDAO\getSession(), DataObjectTombstoneDAO\getSets(), DataObjectTombstoneSettingsDAO\getSetting(), UserSettingsDAO\getSetting(), NavigationMenuItemDAO\getSetting(), UserGroupDAO\getSetting(), UserSettingsDAO\getSettingsByContextId(), SiteDAO\getSite(), AuthSourceDAO\getSource(), IndividualSubscriptionDAO\getStatusCount(), InstitutionalSubscriptionDAO\getStatusCount(), SubmissionCommentDAO\getSubmissionComments(), SubscriptionDAO\getSubscriptionJournalId(), SubscriptionTypeDAO\getSubscriptionTypeDisablePublicDisplay(), SubscriptionTypeDAO\getSubscriptionTypeInstitutional(), SubscriptionTypeDAO\getSubscriptionTypeMembership(), SubscriptionTypeDAO\getSubscriptionTypeName(), PKPOAIDAO\getToken(), UserDAO\getUserByAuthStr(), UserDAO\getUserByCredentials(), UserDAO\getUserByEmail(), UserGroupDAO\getUserGroupIdsByRoleId(), NotificationSubscriptionSettingsDAO\getUserIdByRSSToken(), InterestDAO\getUserIdsByInterest(), UserSettingsDAO\getUsersBySetting(), UserStageAssignmentDAO\getUsersNotAssignedToStageInUserGroup(), VersionDAO\getVersionHistory(), PKPMetricsDAO\hasRecord(), SubmissionSearchDAO\insertKeyword(), CitationDAO\insertObject(), SubmissionSearchDAO\insertObject(), PKPOAIDAO\insertToken(), UserGroupDAO\isDefault(), IssueDAO\issueExists(), IssueDAO\issueIdExists(), IndividualSubscriptionDAO\isValidIndividualSubscription(), InstitutionalSubscriptionDAO\isValidInstitutionalSubscription(), SettingsDAO\loadSettings(), DepositObjectDAO\markHavingUpdatedContent(), IssueDAO\moveCustomIssueOrder(), NavigationMenuDAO\navigationMenuExistsByTitle(), NoteDAO\notesExistByAssoc(), IssueGalleyDAO\pubIdExists(), ArticleGalleyDAO\pubIdExists(), PKPPublicationDAO\pubIdExists(), SubmissionFileDAODelegate\pubIdExists(), IssueDAO\pubIdExists(), ContextDAO\resequence(), ControlledVocabEntryDAO\resequence(), QueryDAO\resequence(), IssueGalleyDAO\resequence(), CategoryDAO\resequenceCategories(), IssueDAO\resequenceCustomIssueOrders(), SectionDAO\resequenceCustomSectionOrders(), DepositPointDAO\resequenceDepositPoints(), ReviewFormElementDAO\resequenceReviewFormElements(), ReviewFormDAO\resequenceReviewForms(), SectionDAO\resequenceSections(), SubscriptionTypeDAO\resequenceSubscriptionTypes(), retrieveRange(), ReviewAssignmentDAO\reviewerExists(), ReviewFormElementDAO\reviewFormElementExists(), ReviewFormDAO\reviewFormExists(), ReviewFormResponseDAO\reviewFormResponseExists(), SectionDAO\sectionExists(), SessionDAO\sessionExistsById(), PluginSettingsDAO\settingExists(), IndividualSubscriptionDAO\subscriptionExists(), InstitutionalSubscriptionDAO\subscriptionExists(), InstitutionalSubscriptionDAO\subscriptionExistsByInstitutionName(), IndividualSubscriptionDAO\subscriptionExistsByUser(), InstitutionalSubscriptionDAO\subscriptionExistsByUser(), IndividualSubscriptionDAO\subscriptionExistsByUserForJournal(), InstitutionalSubscriptionDAO\subscriptionExistsByUserForJournal(), SubscriptionTypeDAO\subscriptionTypeExistsByTypeId(), SubscriptionTypeDAO\subscriptionTypesExistByInstitutional(), NoteDAO\unreadNotesExistByAssoc(), ScheduledTaskDAO\updateLastRunTime(), UserSettingsDAO\updateSetting(), UserGroupDAO\userAssignmentExists(), UserDAO\userExistsByEmail(), UserDAO\userExistsByUsername(), UserGroupDAO\userGroupAssignedToStage(), RoleDAO\userHasRole(), UserGroupDAO\userInAnyGroup(), and UserGroupDAO\userInGroup().
& DAO::retrieveCached | ( | $sql, | |
$params = false , |
|||
$secsToCache = 3600 , |
|||
$callHooks = true |
|||
) |
Execute a cached SELECT SQL statement.
$sql | string the SQL statement |
$params | array parameters for the SQL statement |
Definition at line 115 of file DAO.inc.php.
References HookRegistry\call(), getDataSource(), handleError(), Core\microtime(), setCacheDir(), and strtolower_codesafe().
Referenced by ArticleSearchDAO\getPhraseResults().
& DAO::retrieveLimit | ( | $sql, | |
$params = false , |
|||
$numRows = false , |
|||
$offset = false , |
|||
$callHooks = true |
|||
) |
Execute a SELECT SQL statement with LIMIT on the rows returned.
$sql | string the SQL statement |
$params | array parameters for the SQL statement |
$numRows | int maximum number of rows to return in the result set |
$offset | int row offset in the result set |
Definition at line 148 of file DAO.inc.php.
References HookRegistry\call(), getDataSource(), handleError(), Core\microtime(), and strtolower_codesafe().
Referenced by ReviewRoundDAO\getLastReviewRoundBySubmissionId(), ReviewAssignmentDAO\getLastReviewRoundReviewAssignmentByReviewer(), and TemporaryFileDAO\getTemporaryFile().
& DAO::retrieveRange | ( | $sql, | |
$params = false , |
|||
$dbResultRange = null , |
|||
$callHooks = true |
|||
) |
Execute a SELECT SQL statment, returning rows in the range supplied.
$sql | string the SQL statement |
$params | array parameters for the SQL statement |
$dbResultRange | DBResultRange object describing the desired range |
Definition at line 176 of file DAO.inc.php.
References HookRegistry\call(), getDataSource(), handleError(), Core\microtime(), retrieve(), and strtolower_codesafe().
Referenced by EmailLogDAO\_getByEventType(), UserStageAssignmentDAO\filterUsersNotAssignedToStageInUserGroup(), ReviewFormDAO\getActiveByAssocId(), ContextDAO\getAll(), IndividualSubscriptionDAO\getAll(), InstitutionalSubscriptionDAO\getAll(), SectionDAO\getAll(), AnnouncementDAO\getAnnouncementsNotExpiredByAssocId(), AuthorDAO\getAuthorsAlphabetizedByJournal(), ContextDAO\getAvailable(), EventLogDAO\getByAssoc(), NotificationDAO\getByAssoc(), EmailLogDAO\getByAssoc(), AnnouncementTypeDAO\getByAssoc(), AnnouncementDAO\getByAssocId(), ReviewFormDAO\getByAssocId(), StaticPagesDAO\getByContextId(), GenreDAO\getByContextId(), OJSCompletedPaymentDAO\getByContextId(), DepositPointDAO\getByContextId(), CategoryDAO\getByContextId(), UserGroupDAO\getByContextId(), SectionDAO\getByContextId(), SubmissionSubjectEntryDAO\getByControlledVocabId(), SubmissionAgencyEntryDAO\getByControlledVocabId(), SubmissionDisciplineEntryDAO\getByControlledVocabId(), SubmissionKeywordEntryDAO\getByControlledVocabId(), SubmissionLanguageEntryDAO\getByControlledVocabId(), InterestEntryDAO\getByControlledVocabId(), ControlledVocabEntryDAO\getByControlledVocabId(), IndividualSubscriptionDAO\getByDateEnd(), InstitutionalSubscriptionDAO\getByDateEnd(), GenreDAO\getByDependenceAndContextId(), SubscriptionTypeDAO\getByInstitutional(), InstitutionalSubscriptionDAO\getByInstitutionName(), DepositDAO\getByJournalId(), SubscriptionTypeDAO\getByJournalId(), InstitutionalSubscriptionDAO\getByJournalId(), IndividualSubscriptionDAO\getByJournalId(), CategoryDAO\getByParentId(), CitationDAO\getByPublicationId(), ReviewFormElementDAO\getByReviewFormId(), UserGroupDAO\getByRoleId(), GenreDAO\getBySupplementaryAndContextId(), AnnouncementDAO\getByTypeId(), NoteDAO\getByUserId(), NotificationDAO\getByUserId(), InstitutionalSubscriptionDAO\getByUserId(), IndividualSubscriptionDAO\getByUserId(), OJSCompletedPaymentDAO\getByUserId(), IndividualSubscriptionDAO\getByUserIdForJournal(), InstitutionalSubscriptionDAO\getByUserIdForJournal(), GenreDAO\getEnabledByContextId(), ArticleGalleyDAO\getExportable(), PKPSubmissionDAO\getExportable(), IssueDAO\getExportable(), IssueDAO\getIssues(), PKPMetricsDAO\getMetrics(), AnnouncementDAO\getNumAnnouncementsByAssocId(), AnnouncementDAO\getNumAnnouncementsNotExpiredByAssocId(), GenreDAO\getPrimaryByContextId(), IssueDAO\getPublishedIssues(), ReviewFormResponseDAO\getReviewReviewFormResponseValues(), AuthSourceDAO\getSources(), IssueDAO\getUnpublishedIssues(), UserGroupDAO\getUserGroupsByStage(), InterestDAO\getUserInterestIds(), UserGroupDAO\getUsersById(), RoleDAO\getUsersByRoleId(), UserGroupDAO\getUsersNotInRole(), and GenreDAO\keyExists().
DAO::setCacheDir | ( | ) |
Configure the caching directory for database results NOTE: This is implemented as a GLOBAL setting and cannot be set on a per-connection basis.
Definition at line 274 of file DAO.inc.php.
References CacheManager\getFileCachePath().
Referenced by SubmissionSearchDAO\clearIndex(), flushCache(), and retrieveCached().
DAO::setDataSource | ( | $dataSource | ) |
Set db conn.
$dataSource | ADONewConnection |
Definition at line 47 of file DAO.inc.php.
Referenced by __construct().
DAO::update | ( | $sql, | |
$params = false , |
|||
$callHooks = true , |
|||
$dieOnError = true |
|||
) |
Execute an INSERT, UPDATE, or DELETE SQL statement.
$sql | the SQL statement the execute |
$params | an array of parameters for the SQL statement |
$callHooks | boolean Whether or not to call hooks |
$dieOnError | boolean Whether or not to die if an error occurs |
Definition at line 214 of file DAO.inc.php.
References HookRegistry\call(), getDataSource(), handleError(), Core\microtime(), and strtolower_codesafe().
Referenced by InstitutionalSubscriptionDAO\_deleteSubscriptionIPRanges(), SubscriptionDAO\_insertObject(), InstitutionalSubscriptionDAO\_insertSubscriptionIPRanges(), SubscriptionDAO\_updateObject(), UserGroupDAO\assignGroupToStage(), SubmissionFileDAO\assignRevisionToReviewRound(), NotificationDAO\build(), UserDAO\changeSitePrimaryLocale(), SubmissionDAO\changeStatus(), EventLogDAO\changeUser(), EmailLogDAO\changeUser(), SubmissionSearchDAO\clearIndex(), PKPOAIDAO\clearTokens(), AccessKeyDAO\deleteAccessKeyById(), ArticleGalleyDAO\deleteAllPubIds(), PKPPublicationDAO\deleteAllPubIds(), SubmissionFileDAODelegate\deleteAllPubIds(), IssueDAO\deleteAllPubIds(), SubmissionFileDAO\deleteAllRevisionsByReviewRound(), SessionDAO\deleteAllSessions(), UserStageAssignmentDAO\deleteAssignment(), UserGroupAssignmentDAO\deleteAssignment(), UserGroupAssignmentDAO\deleteAssignmentsByUserGroupId(), StageAssignmentDAO\deleteByAll(), EmailLogDAO\deleteByAssoc(), UserGroupDAO\deleteByContextId(), PluginSettingsDAO\deleteByContextId(), GenreDAO\deleteByContextId(), MarkupJobInfoDAO\deleteByFileId(), QueuedPaymentDAO\deleteById(), DataObjectTombstoneDAO\deleteById(), StaticPagesDAO\deleteById(), ReviewFormResponseDAO\deleteById(), SessionDAO\deleteById(), UserGroupDAO\deleteById(), EventLogDAO\deleteById(), ReviewFormElementDAO\deleteById(), CitationDAO\deleteById(), IssueFileDAO\deleteById(), SubmissionCommentDAO\deleteById(), ReviewFormDAO\deleteById(), NotificationDAO\deleteById(), DepositPointDAO\deleteById(), NavigationMenuDAO\deleteById(), LibraryFileDAO\deleteById(), AnnouncementTypeDAO\deleteById(), QueryDAO\deleteById(), SettingsDAO\deleteById(), NoteDAO\deleteById(), SubscriptionTypeDAO\deleteById(), IndividualSubscriptionDAO\deleteById(), NavigationMenuItemDAO\deleteById(), NavigationMenuItemAssignmentDAO\deleteById(), GenreDAO\deleteById(), CategoryDAO\deleteById(), ReviewRoundDAO\deleteById(), SectionDAO\deleteById(), InstitutionalSubscriptionDAO\deleteById(), IssueGalleyDAO\deleteById(), ReviewAssignmentDAO\deleteById(), IssueFileDAO\deleteByIssueId(), SessionDAO\deleteByLastUsed(), UsageStatsTemporaryRecordDAO\deleteByLoadId(), ReviewFormResponseDAO\deleteByReviewFormElementId(), ReviewFormResponseDAO\deleteByReviewId(), SubEditorsDAO\deleteBySubmissionGroupId(), SubmissionCommentDAO\deleteBySubmissionId(), UserGroupAssignmentDAO\deleteByUserId(), SubEditorsDAO\deleteByUserId(), SessionDAO\deleteByUserId(), TemporaryFileDAO\deleteByUserId(), IssueDAO\deleteCustomIssueOrdering(), SectionDAO\deleteCustomSection(), SectionDAO\deleteCustomSectionOrdering(), EditDecisionDAO\deleteDecisionsBySubmissionId(), SubEditorsDAO\deleteEditor(), QueuedPaymentDAO\deleteExpired(), AccessKeyDAO\deleteExpiredKeys(), NotificationSubscriptionSettingsDAO\deleteNotificationSubscriptionSettings(), DataObjectTombstoneDAO\deleteOAISetObjects(), SupplementaryFileDAODelegate\deleteObject(), SubmissionArtworkFileDAODelegate\deleteObject(), DepositDAO\deleteObject(), FilterGroupDAO\deleteObject(), EmailLogDAO\deleteObject(), AuthSourceDAO\deleteObject(), SubmissionFileDAODelegate\deleteObject(), DepositObjectDAO\deleteObject(), IssueDAO\deleteObject(), ControlledVocabDAO\deleteObjectById(), ControlledVocabEntryDAO\deleteObjectById(), FilterDAO\deleteObjectById(), ArticleGalleyDAO\deletePubId(), PKPPublicationDAO\deletePubId(), SubmissionFileDAODelegate\deletePubId(), IssueDAO\deletePubId(), CategoryDAO\deletePublicationAssignments(), UsageStatsTemporaryRecordDAO\deleteRecord(), SubmissionFileDAO\deleteReviewRoundAssignment(), DataObjectTombstoneSettingsDAO\deleteSetting(), PluginSettingsDAO\deleteSetting(), UserSettingsDAO\deleteSetting(), ReviewFormElementDAO\deleteSetting(), SettingsDAO\deleteSetting(), DataObjectTombstoneSettingsDAO\deleteSettings(), UserSettingsDAO\deleteSettings(), GenreDAO\deleteSettingsByLocale(), NavigationMenuItemDAO\deleteSettingsByLocale(), UserGroupDAO\deleteSettingsByLocale(), NotificationSettingsDAO\deleteSettingsByNotificationId(), PluginSettingsDAO\deleteSettingsByPlugin(), SubmissionSearchDAO\deleteSubmissionKeywords(), TemporaryFileDAO\deleteTemporaryFileById(), ViewsDAO\deleteViews(), VersionDAO\disableVersion(), ReviewFilesDAO\grant(), UsageStatsTemporaryRecordDAO\insert(), IssueDAO\insertCustomIssueOrder(), SectionDAO\insertCustomSectionOrder(), SubEditorsDAO\insertEditor(), SubmissionSearchDAO\insertKeyword(), MarkupJobInfoDAO\insertMarkupJobInfo(), NotificationSubscriptionSettingsDAO\insertNewRSSToken(), DataObjectTombstoneDAO\insertOAISetObjects(), CitationDAO\insertObject(), FilterGroupDAO\insertObject(), SupplementaryFileDAODelegate\insertObject(), SubmissionArtworkFileDAODelegate\insertObject(), SubmissionFileDAODelegate\insertObject(), QueuedPaymentDAO\insertObject(), OJSCompletedPaymentDAO\insertObject(), DepositDAO\insertObject(), SessionDAO\insertObject(), ReviewRoundDAO\insertObject(), ReviewFormResponseDAO\insertObject(), TemporaryFileDAO\insertObject(), UserGroupDAO\insertObject(), SchemaDAO\insertObject(), StaticPagesDAO\insertObject(), SubmissionSearchDAO\insertObject(), DepositPointDAO\insertObject(), ControlledVocabDAO\insertObject(), ReviewFormElementDAO\insertObject(), IssueFileDAO\insertObject(), EventLogDAO\insertObject(), FilterDAO\insertObject(), QueryDAO\insertObject(), AccessKeyDAO\insertObject(), ReviewFormDAO\insertObject(), NotificationDAO\insertObject(), AuthSourceDAO\insertObject(), EmailLogDAO\insertObject(), DataObjectTombstoneDAO\insertObject(), ControlledVocabEntryDAO\insertObject(), SubmissionCommentDAO\insertObject(), LibraryFileDAO\insertObject(), NavigationMenuDAO\insertObject(), AnnouncementTypeDAO\insertObject(), NoteDAO\insertObject(), SubscriptionTypeDAO\insertObject(), NavigationMenuItemAssignmentDAO\insertObject(), NavigationMenuItemDAO\insertObject(), CategoryDAO\insertObject(), StageAssignmentDAO\insertObject(), GenreDAO\insertObject(), DepositObjectDAO\insertObject(), SectionDAO\insertObject(), InstitutionalSubscriptionDAO\insertObject(), IssueGalleyDAO\insertObject(), ReviewAssignmentDAO\insertObject(), IssueDAO\insertObject(), SubmissionSearchDAO\insertObjectKeyword(), QueryDAO\insertParticipant(), CategoryDAO\insertPublicationAssignment(), PKPMetricsDAO\insertRecord(), PKPOAIDAO\insertToken(), VersionDAO\insertVersion(), IssueDAO\moveCustomIssueOrder(), ViewsDAO\moveViews(), PKPMetricsDAO\purgeLoadBatch(), PKPMetricsDAO\purgeRecords(), QueryDAO\removeAllParticipants(), UserGroupDAO\removeGroupFromStage(), QueryDAO\removeParticipant(), SubmissionDAO\removeSubmissionsFromSection(), ContextDAO\resequence(), ControlledVocabEntryDAO\resequence(), QueryDAO\resequence(), IssueGalleyDAO\resequence(), CategoryDAO\resequenceCategories(), IssueDAO\resequenceCustomIssueOrders(), SectionDAO\resequenceCustomSectionOrders(), DepositPointDAO\resequenceDepositPoints(), ReviewFormElementDAO\resequenceReviewFormElements(), ReviewFormDAO\resequenceReviewForms(), SectionDAO\resequenceSections(), SubscriptionTypeDAO\resequenceSubscriptionTypes(), ReviewFilesDAO\revoke(), ReviewFilesDAO\revokeByReviewId(), NotificationDAO\setDateRead(), AuthSourceDAO\setDefault(), InterestDAO\setUserInterests(), AccessKeyDAO\transferAccessKeys(), EditDecisionDAO\transferEditorDecisions(), NotificationDAO\transferNotifications(), IssueDAO\updateCurrent(), SectionDAO\updateCustomSectionOrder(), updateDataObjectSettings(), EditDecisionDAO\updateEditorDecision(), ScheduledTaskDAO\updateLastRunTime(), MarkupJobInfoDAO\updateMarkupJobInfo(), NotificationSettingsDAO\updateNotificationSetting(), NotificationSubscriptionSettingsDAO\updateNotificationSubscriptionSettings(), DataObjectTombstoneDAO\updateOAISetObjects(), SupplementaryFileDAODelegate\updateObject(), QueuedPaymentDAO\updateObject(), SubmissionArtworkFileDAODelegate\updateObject(), OJSCompletedPaymentDAO\updateObject(), DepositDAO\updateObject(), SessionDAO\updateObject(), ReviewRoundDAO\updateObject(), ReviewFormResponseDAO\updateObject(), FilterGroupDAO\updateObject(), TemporaryFileDAO\updateObject(), StaticPagesDAO\updateObject(), UserGroupDAO\updateObject(), ReviewFormElementDAO\updateObject(), ControlledVocabDAO\updateObject(), SubmissionFileDAODelegate\updateObject(), IssueFileDAO\updateObject(), CitationDAO\updateObject(), DepositPointDAO\updateObject(), AccessKeyDAO\updateObject(), ReviewFormDAO\updateObject(), AuthSourceDAO\updateObject(), DataObjectTombstoneDAO\updateObject(), NavigationMenuItemAssignmentDAO\updateObject(), NavigationMenuDAO\updateObject(), LibraryFileDAO\updateObject(), AnnouncementTypeDAO\updateObject(), QueryDAO\updateObject(), SubmissionCommentDAO\updateObject(), NoteDAO\updateObject(), SubscriptionTypeDAO\updateObject(), NavigationMenuItemDAO\updateObject(), CategoryDAO\updateObject(), ControlledVocabEntryDAO\updateObject(), StageAssignmentDAO\updateObject(), GenreDAO\updateObject(), DepositObjectDAO\updateObject(), SectionDAO\updateObject(), InstitutionalSubscriptionDAO\updateObject(), IssueGalleyDAO\updateObject(), FilterDAO\updateObject(), ReviewAssignmentDAO\updateObject(), IssueDAO\updateObject(), ReviewerSubmissionDAO\updateReviewerSubmission(), DataObjectTombstoneSettingsDAO\updateSetting(), UserSettingsDAO\updateSetting(), SettingsDAO\updateSetting(), NavigationMenuItemDAO\updateSetting(), UserGroupDAO\updateSetting(), and ReviewRoundDAO\updateStatus().
DAO::updateDataObjectSettings | ( | $tableName, | |
$dataObject, | |||
$idArray | |||
) |
Update the settings table of a data object.
$tableName | string |
$dataObject | DataObject |
$idArray | array |
Reimplemented in FilterDAO.
Definition at line 488 of file DAO.inc.php.
References convertToDB(), getAdditionalFieldNames(), getLocaleFieldNames(), replace(), and update().
Referenced by CitationDAO\_updateObjectMetadata(), ReviewFormElementDAO\updateLocaleFields(), LibraryFileDAO\updateLocaleFields(), ReviewFormDAO\updateLocaleFields(), ControlledVocabEntryDAO\updateLocaleFields(), DepositPointDAO\updateLocaleFields(), GenreDAO\updateLocaleFields(), AnnouncementTypeDAO\updateLocaleFields(), SubscriptionTypeDAO\updateLocaleFields(), StaticPagesDAO\updateLocaleFields(), NavigationMenuItemDAO\updateLocaleFields(), CategoryDAO\updateLocaleFields(), UserGroupDAO\updateLocaleFields(), SectionDAO\updateLocaleFields(), IssueGalleyDAO\updateLocaleFields(), NavigationMenuItemAssignmentDAO\updateLocaleFields(), SubmissionFileDAODelegate\updateLocaleFields(), and IssueDAO\updateLocaleFields().
DAO::$_dataSource |
The database connection object
Definition at line 33 of file DAO.inc.php.
Referenced by getDataSource().