Open Journal Systems  3.0.0
 All Classes Namespaces Functions Variables Groups Pages
DataObject Class Reference
Inheritance diagram for DataObject:
AccessKey AuthSource BaseEmailTemplate BookForReview BookForReviewAuthor Citation Comment Context ControlledVocab ControlledVocabEntry Currency DataObjectTombstone EmailLogEntry EventLogEntry ExternalFeed Filter FilterGroup FooterCategory FooterLink Genre Identity Issue Language LibraryFile Mail MetadataDescription PKPAnnouncement PKPAnnouncementType PKPFile PKPGift PKPRole PKPSection PKPSocialMedia Process Referral Representation ReviewAssignment ReviewForm ReviewFormElement ReviewFormResponse ReviewRound Session Signoff Site StageAssignment Submission SubmissionComment Subscription UserGroup Version

Public Member Functions

 addSupportedMetadataAdapter ($metadataAdapter)
 
 DataObject ()
 
 extractMetadata ($metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
getLocalizedData ($key)
 
 getMetadataFieldNames ($translated=true)
 
 getSetMetadataFieldNames ($translated=true)
 
 getSupportedExtractionAdapters ()
 
 getSupportedInjectionAdapters ()
 
 getSupportedMetadataSchemas ()
 
 hasData ($key, $locale=null)
 
 injectMetadata ($metadataDescription)
 
 removeSupportedMetadataAdapter ($metadataSchemaName)
 
 setAllData (&$data)
 
 setData ($key, $value, $locale=null)
 
 setHasLoadableAdapters ($hasLoadableAdapters)
 
 setId ($id)
 
 upcastTo ($targetObject)
 

Public Attributes

 $_data = array()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = array()
 

Detailed Description

Any class with an associated DAO should extend this class.

See Also
Core

Definition at line 18 of file DataObject.inc.php.

Member Function Documentation

DataObject::addSupportedMetadataAdapter (   $metadataAdapter)

Add a meta-data adapter that will be supported by this application entity. Only one adapter per schema can be added.

Parameters
$metadataAdapterMetadataDataObjectAdapter

Definition at line 265 of file DataObject.inc.php.

DataObject::DataObject ( )

Constructor.

Definition at line 58 of file DataObject.inc.php.

DataObject::extractMetadata (   $metadataSchema)

Extract a meta-data description from this data object.

Parameters
$metadataSchemaMetadataSchema
Returns
$metadataDescription MetadataDescription

Definition at line 459 of file DataObject.inc.php.

DataObject::getAdditionalMetadataFieldNames ( )

Retrieve the names of additional meta-data properties that need to be persisted.

Returns
array an array of field names

Definition at line 421 of file DataObject.inc.php.

& DataObject::getAllData ( )

Return an array with all data variables.

Returns
array

Definition at line 175 of file DataObject.inc.php.

& DataObject::getData (   $key,
  $locale = null 
)

Get the value of a data variable.

Parameters
$keystring
$localestring (optional)
Returns
mixed

Definition at line 100 of file DataObject.inc.php.

Referenced by Citation\addError(), PlainTextReferencesListFilter\addTemplateVars(), ArtworkFile\ArtworkFile(), Section\getAbbrev(), UserGroup\getAbbrev(), Submission\getAbstract(), Section\getAbstractsNotRequired(), Section\getAbstractWordCount(), PublishedArticle\getAccessStatus(), Issue\getAccessStatus(), ReviewForm\getActive(), Process\getAdditionalData(), Identity\getAffiliation(), SubmissionAgency\getAgency(), PKPAnnouncement\getAnnouncementTypeName(), IsbndbNlm30CitationSchemaFilter\getApiKey(), WorldcatNlm30CitationSchemaFilter\getApiKey(), Referral\getArticleId(), PKPAnnouncementType\getAssocId(), ControlledVocab\getAssocId(), Signoff\getAssocId(), PKPAnnouncement\getAssocId(), BaseEmailTemplate\getAssocId(), PKPGift\getAssocId(), AccessKey\getAssocId(), SubmissionComment\getAssocId(), ReviewForm\getAssocId(), SubmissionFile\getAssocId(), EmailLogEntry\getAssocId(), EventLogEntry\getAssocId(), BaseEmailTemplate\getAssocType(), PKPGift\getAssocType(), PKPAnnouncementType\getAssocType(), ControlledVocab\getAssocType(), Signoff\getAssocType(), PKPAnnouncement\getAssocType(), ReviewForm\getAssocType(), EmailLogEntry\getAssocType(), EventLogEntry\getAssocType(), SubmissionFile\getAssocType(), AuthSource\getAuthId(), PKPUser\getAuthId(), SubmissionComment\getAuthorEmail(), SubmissionComment\getAuthorId(), SubmissionComment\getAuthorName(), PKPUser\getAuthStr(), PKPUser\getBillingAddress(), Identity\getBiography(), Comment\getBody(), BookForReviewAuthor\getBookId(), Version\getBuild(), PKPGift\getBuyerEmail(), PKPGift\getBuyerFirstName(), PKPGift\getBuyerFullName(), PKPGift\getBuyerLastName(), PKPGift\getBuyerMiddleName(), PKPGift\getBuyerUserId(), ReviewAssignment\getCancelled(), BaseEmailTemplate\getCanDisable(), Genre\getCategory(), FooterLink\getCategoryId(), Comment\getChildCommentCount(), Comment\getChildren(), ParaciteRawCitationNlm30CitationSchemaFilter\getCitationModule(), TemplateBasedReferencesListFilter\getCitationOutputFilterInstance(), Submission\getCitations(), Citation\getCitationState(), PKPSocialMedia\getCode(), Language\getCode(), Currency\getCodeAlpha(), Currency\getCodeNumeric(), ReviewAssignment\getComments(), SubmissionComment\getComments(), Submission\getCommentsStatus(), Submission\getCommentsToEditor(), SubmissionComment\getCommentTitle(), SubmissionComment\getCommentType(), Author\getCompetingInterests(), ReviewAssignment\getCompetingInterests(), ReviewForm\getCompleteCount(), IssueFile\getContentType(), AccessKey\getContext(), PKPSection\getContextId(), PKPSocialMedia\getContextId(), FooterCategory\getContextId(), FooterLink\getContextId(), Genre\getContextId(), LibraryFile\getContextId(), UserGroup\getContextId(), Submission\getContextId(), ControlledVocabEntry\getControlledVocabId(), Submission\getCopyrightNotice(), Identity\getCountry(), Submission\getCoverageChron(), Submission\getCoverageGeo(), Submission\getCoverageSample(), Issue\getCoverPageAltText(), Submission\getCoverPageAltText(), Issue\getCoverPageDescription(), Issue\getCurrent(), Version\getCurrent(), Article\getCurrentRound(), DataObjectTombstone\getDataObjectId(), Signoff\getDateAcknowledged(), ReviewAssignment\getDateAcknowledged(), Referral\getDateAdded(), StageAssignment\getDateAssigned(), ReviewAssignment\getDateAssigned(), Signoff\getDateCompleted(), ReviewAssignment\getDateCompleted(), ReviewAssignment\getDateConfirmed(), DataObjectTombstone\getDateDeleted(), ReviewAssignment\getDateDue(), Subscription\getDateEnd(), PKPAnnouncement\getDateExpire(), Version\getDateInstalled(), PKPUser\getDateLastEmail(), PKPUser\getDateLastLogin(), EventLogEntry\getDateLogged(), IssueFile\getDateModified(), LibraryFile\getDateModified(), Comment\getDateModified(), SubmissionComment\getDateModified(), SubmissionFile\getDateModified(), Signoff\getDateNotified(), Issue\getDateNotified(), ReviewAssignment\getDateNotified(), Comment\getDatePosted(), SubmissionComment\getDatePosted(), PKPAnnouncement\getDatePosted(), Issue\getDatePublished(), Submission\getDatePublished(), ReviewAssignment\getDateRated(), PKPUser\getDateRegistered(), ReviewAssignment\getDateReminded(), ReviewAssignment\getDateResponseDue(), EmailLogEntry\getDateSent(), Subscription\getDateStart(), Submission\getDateStatusModified(), Submission\getDateSubmitted(), PKPAnnouncement\getDatetimePosted(), PKPGift\getDatetimeRedeemed(), Signoff\getDateUnderway(), PKPFile\getDateUploaded(), LibraryFile\getDateUploaded(), PKPUser\getDateValidated(), SectionEditorSubmission\getDecisions(), ReviewAssignment\getDeclined(), UserGroup\getDefault(), AuthSource\getDefault(), Genre\getDependent(), Context\getDescription(), FooterCategory\getDescription(), FilterGroup\getDescription(), ReviewForm\getDescription(), PKPAnnouncement\getDescription(), Issue\getDescription(), PKPAnnouncement\getDescriptionShort(), Genre\getDesignation(), SubmissionFile\getDirectSalesPrice(), Section\getDisableComments(), PKPUser\getDisabled(), PKPUser\getDisabledReason(), SubmissionDiscipline\getDiscipline(), Submission\getDiscipline(), ExternalFeed\getDisplayBlock(), ExternalFeed\getDisplayHomepage(), FilterGroup\getDisplayName(), InstitutionalSubscription\getDomain(), PKPSection\getEditorRestricted(), ReviewFormElement\getElementType(), PubmedNlm30CitationSchemaFilter\getEmail(), CrossrefNlm30CitationSchemaFilter\getEmail(), Identity\getEmail(), BaseEmailTemplate\getEmailId(), BaseEmailTemplate\getEmailKey(), Genre\getEnabled(), Context\getEnabled(), BaseEmailTemplate\getEnabled(), Mail\getEnvelopeSender(), EmailLogEntry\getEventType(), EventLogEntry\getEventType(), AccessKey\getExpiryDate(), Article\getFastTracked(), PKPUser\getFax(), Note\getFile(), SubmissionFile\getFileId(), Signoff\getFileId(), IssueGalley\getFileId(), Issue\getFileName(), Submission\getFileName(), Signoff\getFileRevision(), PKPFile\getFileSize(), LibraryFile\getFileSize(), SubmissionFile\getFileStage(), PKPFile\getFileType(), LibraryFile\getFileType(), Identity\getFirstName(), BookForReviewAuthor\getFirstName(), BaseEmailTemplate\getFromRoleId(), BookForReviewAuthor\getFullName(), Identity\getFullName(), PublishedArticle\getGalleys(), ArticleGalley\getGalleyType(), PKPUser\getGender(), SubmissionFile\getGenreId(), PKPGift\getGiftAssocId(), PKPGift\getGiftNote(), PKPGift\getGiftNoteTitle(), PKPGift\getGiftType(), PKPUser\getGossip(), Issue\getHeight(), Submission\getHeight(), Section\getHideAbout(), Submission\getHideAuthor(), Section\getHideAuthor(), Submission\getHideCoverPageAbstract(), Issue\getHideCoverPageArchives(), Issue\getHideCoverPageCover(), Submission\getHideCoverPageToc(), Section\getHideTitle(), ExternalFeed\getId(), BookForReviewAuthor\getId(), Section\getIdentifyType(), ReviewFormElement\getIncluded(), PKPSocialMedia\getIncludeInCatalog(), ReviewForm\getIncompleteCount(), Identity\getInitials(), PKPUser\getInlineHelp(), FilterGroup\getInputType(), Site\getInstalledLocales(), InstitutionalSubscription\getInstitutionMailingAddress(), InstitutionalSubscription\getInstitutionName(), EmailLogEntry\getIPAddress(), EventLogEntry\getIPAddress(), Session\getIpAddress(), InstitutionalSubscription\getIPRanges(), InstitutionalSubscription\getIPRangesString(), ArticleGalley\getIsAvailable(), IssueFile\getIssueId(), PublishedArticle\getIssueId(), Issue\getIssueIdentification(), EventLogEntry\getIsTranslated(), Issue\getJournalId(), Subscription\getJournalId(), ExternalFeed\getJournalId(), Article\getJournalId(), Genre\getKey(), AccessKey\getKeyHash(), SubmissionKeyword\getKeyword(), IssueGalley\getLabel(), ArticleGalley\getLabel(), SubmissionLanguage\getLanguage(), Submission\getLanguage(), Issue\getLastModified(), ReviewAssignment\getLastModified(), Submission\getLastModified(), Identity\getLastName(), BookForReviewAuthor\getLastName(), Version\getLazyLoad(), ExternalFeed\getLimitItems(), Referral\getLinkCount(), IssueGalley\getLocale(), ArticleGalley\getLocale(), Submission\getLocale(), PKPGift\getLocale(), PKPUser\getLocales(), Submission\getLocalizedData(), PublishedArticle\getLocalizedGalleys(), PKPUser\getMailingAddress(), Version\getMajor(), Subscription\getMembership(), EventLogEntry\getMessage(), TemplateBasedReferencesListFilter\getMetadataSchema(), Section\getMetaIndexed(), Section\getMetaReviewed(), Identity\getMiddleName(), BookForReviewAuthor\getMiddleName(), Version\getMinor(), Site\getMinPasswordLength(), PKPUser\getMustChangePassword(), Currency\getName(), Language\getName(), Representation\getName(), PKPAnnouncementType\getName(), ControlledVocabEntry\getName(), Genre\getName(), Referral\getName(), LibraryFile\getName(), UserGroup\getName(), SubmissionFile\getName(), PKPFile\getNiceFileSize(), LibraryFile\getNiceFileSize(), Subscription\getNotes(), PKPGift\getNotes(), Issue\getNumber(), DataObjectTombstone\getOAIIdentifier(), DataObjectTombstone\getOAISetObjectsIds(), Process\getObliterated(), Issue\getOpenAccessDate(), PKPFile\getOriginalFileName(), LibraryFile\getOriginalFileName(), Issue\getOriginalFileName(), Submission\getOriginalFileName(), Site\getOriginalStyleFilename(), Issue\getOriginalStyleFileName(), FilterGroup\getOutputType(), Submission\getPages(), EventLogEntry\getParams(), Comment\getParentCommentId(), PKPUser\getPassword(), FooterCategory\getPath(), UserGroup\getPath(), Context\getPath(), UserGroup\getPermitSelfRegistration(), PKPUser\getPhone(), PKPSocialMedia\getPlatform(), AuthSource\getPlugin(), AuthSource\getPluginClass(), Section\getPolicy(), ReviewFormElement\getPossibleResponses(), Comment\getPosterEmail(), Comment\getPosterIP(), Comment\getPosterName(), Submission\getPrefix(), PKPAuthor\getPrimaryContact(), Context\getPrimaryLocale(), Site\getPrimaryLocale(), Process\getProcessType(), Version\getProduct(), Version\getProductClassName(), Version\getProductType(), Issue\getPublished(), PublishedArticle\getPublishedArticleId(), ReviewAssignment\getQuality(), ReviewFormElement\getQuestion(), ExternalFeed\getRecentItems(), PKPGift\getRecipientEmail(), PKPGift\getRecipientFirstName(), PKPGift\getRecipientFullName(), PKPGift\getRecipientLastName(), PKPGift\getRecipientMiddleName(), PKPGift\getRecipientUserId(), ReviewAssignment\getRecommendation(), Site\getRedirect(), Subscription\getReferenceNumber(), Session\getRemember(), ReviewAssignment\getReminderWasAutomatic(), ArticleGalley\getRemoteURL(), ReviewAssignment\getReplaced(), ReviewFormElement\getRequired(), ReviewFormResponse\getResponseType(), XSLTransformationFilter\getResultType(), ReviewAssignment\getReviewerFullName(), ReviewAssignment\getReviewerId(), ReviewFormResponse\getReviewFormElementId(), ReviewFormElement\getReviewFormId(), PKPSection\getReviewFormId(), ReviewAssignment\getReviewFormId(), ReviewFormResponse\getReviewId(), ReviewAssignment\getReviewMethod(), ReviewAssignment\getReviewRoundId(), Version\getRevision(), SubmissionFile\getRevision(), Submission\getRights(), UserGroup\getRoleId(), SubmissionComment\getRoleId(), SubmissionComment\getRoleName(), ReviewRound\getRound(), SubmissionFile\getRound(), ReviewAssignment\getRound(), SubmissionFile\getSalesType(), Identity\getSalutation(), Session\getSecondsCreated(), Session\getSecondsLastUsed(), Article\getSectionAbbrev(), Article\getSectionId(), Article\getSectionTitle(), EmailLogEntry\getSenderEmail(), EmailLogEntry\getSenderFullName(), EmailLogEntry\getSenderId(), Representation\getSeq(), PublishedArticle\getSeq(), ExternalFeed\getSeq(), PKPSection\getSequence(), Genre\getSequence(), ControlledVocabEntry\getSequence(), ReviewFormElement\getSequence(), PKPAuthor\getSequence(), IssueGalley\getSequence(), ReviewForm\getSequence(), BookForReviewAuthor\getSequence(), Context\getSequence(), PKPFile\getServerFileName(), LibraryFile\getServerFileName(), Session\getSessionData(), DataObjectTombstone\getSetName(), DataObjectTombstone\getSetSpec(), AuthSource\getSettings(), Issue\getShowCoverPage(), Submission\getShowCoverPage(), Issue\getShowNumber(), PKPAuthor\getShowTitle(), UserGroup\getShowTitle(), Issue\getShowTitle(), Issue\getShowVolume(), Issue\getShowYear(), PKPUser\getSignature(), Version\getSitewide(), Genre\getSortable(), Submission\getSource(), SubmissionFile\getSourceFileId(), SubmissionFile\getSourceRevision(), Submission\getSponsor(), ReviewRound\getStageId(), StageAssignment\getStageId(), ReviewAssignment\getStageId(), Submission\getStageId(), MetadataDescription\getStatements(), Referral\getStatus(), PKPGift\getStatus(), ReviewRound\getStatus(), Subscription\getStatus(), Submission\getStatus(), Subscription\getStatusString(), Representation\getStoredPubId(), ArticleFile\getStoredPubId(), Submission\getStoredPubId(), IssueGalley\getStoredPubId(), Issue\getStoredPubId(), Issue\getStyleFileName(), SubmissionSubject\getSubject(), Submission\getSubject(), Submission\getSubjectClass(), PKPAuthor\getSubmissionId(), StageAssignment\getSubmissionId(), ReviewRound\getSubmissionId(), ReviewAssignment\getSubmissionId(), LibraryFile\getSubmissionId(), Comment\getSubmissionId(), SubmissionComment\getSubmissionId(), Representation\getSubmissionId(), SubmissionFile\getSubmissionId(), Submission\getSubmissionProgress(), Subscription\getSubscriptionTypeInstitutional(), Subscription\getSubscriptionTypeName(), Subscription\getSubscriptionTypeSummaryString(), Submission\getSubtitle(), Identity\getSuffix(), Context\getSupportedFormLocaleNames(), Context\getSupportedLocaleNames(), Site\getSupportedLocales(), Nlm30CitationSchemaFilter\getSupportedPublicationTypes(), Context\getSupportedSubmissionLocaleNames(), ControlledVocab\getSymbolic(), FilterGroup\getSymbolic(), Signoff\getSymbolic(), Process\getTimeStarted(), AuthSource\getTitle(), Issue\getTitle(), PKPSection\getTitle(), FooterCategory\getTitle(), FooterLink\getTitle(), PKPAnnouncement\getTitle(), Comment\getTitle(), ReviewForm\getTitle(), ExternalFeed\getTitle(), Submission\getTitle(), BaseEmailTemplate\getToRoleId(), LibraryFile\getType(), Submission\getType(), PKPAnnouncement\getTypeId(), Subscription\getTypeId(), ReviewAssignment\getUnconsidered(), SubmissionFile\getUploaderUserId(), Referral\getURL(), FooterLink\getUrl(), ExternalFeed\getUrl(), Identity\getUrl(), Comment\getUser(), Session\getUserAgent(), Subscription\getUserEmail(), EventLogEntry\getUserEmail(), Subscription\getUserFullName(), EventLogEntry\getUserFullName(), PKPAuthor\getUserGroupId(), StageAssignment\getUserGroupId(), Signoff\getUserGroupId(), SubmissionFile\getUserGroupId(), EventLogEntry\getUserId(), TemporaryFile\getUserId(), Subscription\getUserId(), AccessKey\getUserId(), Session\getUserId(), StageAssignment\getUserId(), Signoff\getUserId(), Submission\getUserId(), PKPUser\getUsername(), ReviewFormResponse\getValue(), SubmissionComment\getViewable(), SubmissionFile\getViewable(), Issue\getVolume(), Issue\getWidth(), Submission\getWidth(), XSLTransformationFilter\getXSL(), XSLTransformationFilter\getXSLType(), Issue\getYear(), EmailTemplate\isCustomTemplate(), Subscription\isExpired(), Subscription\isNonExpiring(), IndividualSubscription\isValid(), InstitutionalSubscription\isValid(), PlainTextReferencesListFilter\process(), Mail\setBody(), ArtworkFile\setCaption(), Mail\setCcs(), ArtworkFile\setChapterId(), Mail\setContentType(), ArtworkFile\setCopyrightOwner(), ArtworkFile\setCopyrightOwnerContactDetails(), ArtworkFile\setCredit(), Mail\setEnvelopeSender(), Mail\setFrom(), Mail\setHeaders(), EmailTemplate\setLocale(), ArtworkFile\setPermissionFileId(), ArtworkFile\setPermissionTerms(), Mail\setPrivateParams(), Mail\setRecipients(), Mail\setSubject(), EmailTemplate\setSubject(), Session\setUserId(), and Filter\supportsAsInput().

DataObject::getHasLoadableAdapters ( )

Get whether the object has loadable meta-data adapters

Returns
boolean

Definition at line 255 of file DataObject.inc.php.

DataObject::getLocaleMetadataFieldNames ( )

Retrieve the names of translated meta-data properties that need to be persisted.

Returns
array an array of field names

Definition at line 412 of file DataObject.inc.php.

& DataObject::getLocalizedData (   $key)

Get a piece of data for this object, localized to the current locale if possible.

Parameters
$keystring
Returns
mixed

Definition at line 71 of file DataObject.inc.php.

Referenced by Issue\getIssueIdentification(), Section\getLocalizedAbbrev(), UserGroup\getLocalizedAbbrev(), Identity\getLocalizedAffiliation(), Identity\getLocalizedBiography(), Author\getLocalizedCompetingInterests(), Issue\getLocalizedCoverPageAltText(), Issue\getLocalizedCoverPageDescription(), ReviewForm\getLocalizedDescription(), FooterCategory\getLocalizedDescription(), PKPAnnouncement\getLocalizedDescription(), Issue\getLocalizedDescription(), PKPAnnouncement\getLocalizedDescriptionShort(), Issue\getLocalizedFileName(), PKPUser\getLocalizedGossip(), Issue\getLocalizedHeight(), Section\getLocalizedIdentifyType(), Representation\getLocalizedName(), ControlledVocabEntry\getLocalizedName(), Genre\getLocalizedName(), UserGroup\getLocalizedName(), LibraryFile\getLocalizedName(), SubmissionFile\getLocalizedName(), Issue\getLocalizedOriginalFileName(), Site\getLocalizedPageHeaderTitleType(), PKPSocialMedia\getLocalizedPlatform(), Section\getLocalizedPolicy(), ReviewFormElement\getLocalizedPossibleResponses(), ReviewFormElement\getLocalizedQuestion(), Issue\getLocalizedShowCoverPage(), PKPUser\getLocalizedSignature(), ReviewForm\getLocalizedTitle(), Issue\getLocalizedTitle(), FooterCategory\getLocalizedTitle(), PKPSection\getLocalizedTitle(), FooterLink\getLocalizedTitle(), PKPAnnouncement\getLocalizedTitle(), ExternalFeed\getLocalizedTitle(), PKPAnnouncementType\getLocalizedTypeName(), Issue\getLocalizedWidth(), and Referral\getReferralName().

DataObject::getMetadataFieldNames (   $translated = true)

Retrieve the names of meta-data properties of this data object.

Parameters
$translatedboolean if true, return localized field names, otherwise return additional field names.

Definition at line 371 of file DataObject.inc.php.

DataObject::getSetMetadataFieldNames (   $translated = true)

Retrieve the names of meta-data properties that need to be persisted (i.e. that have data).

Parameters
$translatedboolean if true, return localized field names, otherwise return additional field names.
Returns
array an array of field names

Definition at line 393 of file DataObject.inc.php.

DataObject::getSupportedExtractionAdapters ( )

Get all meta-data extraction adapters that support this data object. This includes adapters loaded from the database.

Returns
array

Definition at line 317 of file DataObject.inc.php.

DataObject::getSupportedInjectionAdapters ( )

Get all meta-data injection adapters that support this data object. This includes adapters loaded from the database.

Returns
array

Definition at line 337 of file DataObject.inc.php.

DataObject::getSupportedMetadataSchemas ( )

Returns all supported meta-data schemas which are supported by extractor adapters.

Returns
array

Definition at line 356 of file DataObject.inc.php.

DataObject::hasData (   $key,
  $locale = null 
)

Check whether a value exists for a given data variable.

Parameters
$keystring
$localestring (optional)
Returns
boolean

Definition at line 162 of file DataObject.inc.php.

Referenced by Filter\supportsAsInput().

DataObject::injectMetadata (   $metadataDescription)

Inject a meta-data description into this data object.

Parameters
$metadataDescriptionMetadataDescription
$replaceboolean whether to delete existing meta-data
Returns
boolean true on success, otherwise false

Definition at line 432 of file DataObject.inc.php.

DataObject::removeSupportedMetadataAdapter (   $metadataSchemaName)

Remove all adapters for the given meta-data schema (if it exists).

Parameters
$metadataSchemaNamestring fully qualified class name
Returns
boolean true if an adapter was removed, otherwise false.

Definition at line 298 of file DataObject.inc.php.

DataObject::setAllData ( $data)

Set all data variables at once.

Parameters
$dataarray

Definition at line 183 of file DataObject.inc.php.

DataObject::setData (   $key,
  $value,
  $locale = null 
)

Set the value of a new or existing data variable. NB: Passing in null as a value will unset the data variable if it already existed.

Parameters
$keystring
$valuemixed can be either a single value or an array of of localized values in the form: array( 'fr_FR' => 'en fran├žais', 'en_US' => 'in English', ... )
$localestring (optional) non-null for a single localized value. Null for a non-localized value or when setting all locales at once (see comment for $value parameter)

Definition at line 132 of file DataObject.inc.php.

Referenced by PKPAuthor\_setShowTitle(), Mail\getBccs(), EmailTemplate\getBody(), ArtworkFile\getCaption(), Mail\getCcs(), ArtworkFile\getChapterId(), ArtworkFile\getContactAuthor(), Mail\getContentType(), ArtworkFile\getCopyrightOwner(), ArtworkFile\getCopyrightOwnerContactDetails(), ArtworkFile\getCredit(), Citation\getErrors(), Mail\getFrom(), Mail\getHeaders(), EmailTemplate\getLocale(), ArtworkFile\getPermissionFileId(), ArtworkFile\getPermissionTerms(), Mail\getRecipients(), Mail\getReplyTo(), EmailTemplate\getSubject(), Mail\getSubject(), PKPSubmissionNlm30XmlFilter\PKPSubmissionNlm30XmlFilter(), Section\setAbbrev(), UserGroup\setAbbrev(), Submission\setAbstract(), Section\setAbstractsNotRequired(), Section\setAbstractWordCount(), PublishedArticle\setAccessStatus(), Issue\setAccessStatus(), ReviewForm\setActive(), Process\setAdditionalData(), Identity\setAffiliation(), SubmissionAgency\setAgency(), Referral\setArticleId(), PKPAnnouncementType\setAssocId(), ControlledVocab\setAssocId(), Signoff\setAssocId(), PKPAnnouncement\setAssocId(), BaseEmailTemplate\setAssocId(), PKPGift\setAssocId(), AccessKey\setAssocId(), SubmissionComment\setAssocId(), ReviewForm\setAssocId(), SubmissionFile\setAssocId(), EmailLogEntry\setAssocId(), EventLogEntry\setAssocId(), BaseEmailTemplate\setAssocType(), PKPGift\setAssocType(), PKPAnnouncementType\setAssocType(), ControlledVocab\setAssocType(), Signoff\setAssocType(), PKPAnnouncement\setAssocType(), ReviewForm\setAssocType(), EmailLogEntry\setAssocType(), EventLogEntry\setAssocType(), SubmissionFile\setAssocType(), AuthSource\setAuthId(), PKPUser\setAuthId(), SubmissionComment\setAuthorId(), PKPUser\setAuthStr(), PKPUser\setBillingAddress(), Identity\setBiography(), Comment\setBody(), BookForReviewAuthor\setBookId(), Version\setBuild(), PKPGift\setBuyerEmail(), PKPGift\setBuyerFirstName(), PKPGift\setBuyerLastName(), PKPGift\setBuyerMiddleName(), PKPGift\setBuyerUserId(), ReviewAssignment\setCancelled(), BaseEmailTemplate\setCanDisable(), Genre\setCategory(), FooterLink\setCategoryId(), Comment\setChildCommentCount(), Comment\setChildren(), Submission\setCitations(), Citation\setCitationState(), Submission\setCleanTitle(), PKPSocialMedia\setCode(), Language\setCode(), Currency\setCodeAlpha(), Currency\setCodeNumeric(), ReviewAssignment\setComments(), SubmissionComment\setComments(), Submission\setCommentsStatus(), Submission\setCommentsToEditor(), SubmissionComment\setCommentTitle(), SubmissionComment\setCommentType(), Author\setCompetingInterests(), ReviewAssignment\setCompetingInterests(), ReviewForm\setCompleteCount(), Context\setContactEmail(), Context\setContactName(), IssueFile\setContentType(), AccessKey\setContext(), FooterCategory\setContextId(), FooterLink\setContextId(), PKPSection\setContextId(), PKPSocialMedia\setContextId(), Genre\setContextId(), LibraryFile\setContextId(), UserGroup\setContextId(), Submission\setContextId(), ControlledVocabEntry\setControlledVocabId(), Submission\setCopyrightNotice(), Identity\setCountry(), Submission\setCoverageChron(), Submission\setCoverageGeo(), Submission\setCoverageSample(), Issue\setCoverPageAltText(), Submission\setCoverPageAltText(), Issue\setCoverPageDescription(), Issue\setCurrent(), Version\setCurrent(), Article\setCurrentRound(), DataObjectTombstone\setDataObjectId(), Signoff\setDateAcknowledged(), ReviewAssignment\setDateAcknowledged(), Referral\setDateAdded(), StageAssignment\setDateAssigned(), ReviewAssignment\setDateAssigned(), Signoff\setDateCompleted(), ReviewAssignment\setDateCompleted(), ReviewAssignment\setDateConfirmed(), DataObjectTombstone\setDateDeleted(), ReviewAssignment\setDateDue(), Subscription\setDateEnd(), PKPAnnouncement\setDateExpire(), Version\setDateInstalled(), PKPUser\setDateLastEmail(), PKPUser\setDateLastLogin(), EventLogEntry\setDateLogged(), IssueFile\setDateModified(), Comment\setDateModified(), SubmissionComment\setDateModified(), Signoff\setDateNotified(), Issue\setDateNotified(), ReviewAssignment\setDateNotified(), Comment\setDatePosted(), SubmissionComment\setDatePosted(), PKPAnnouncement\setDatePosted(), Issue\setDatePublished(), ReviewAssignment\setDateRated(), PKPUser\setDateRegistered(), ReviewAssignment\setDateReminded(), ReviewAssignment\setDateResponseDue(), EmailLogEntry\setDateSent(), Subscription\setDateStart(), Submission\setDateStatusModified(), Submission\setDateSubmitted(), PKPAnnouncement\setDatetimePosted(), PKPGift\setDatetimeRedeemed(), Signoff\setDateUnderway(), PKPUser\setDateValidated(), ReviewAssignment\setDeclined(), UserGroup\setDefault(), AuthSource\setDefault(), Genre\setDependent(), FilterGroup\setDescription(), Context\setDescription(), FooterCategory\setDescription(), ReviewForm\setDescription(), PKPAnnouncement\setDescription(), Issue\setDescription(), PKPAnnouncement\setDescriptionShort(), Genre\setDesignation(), SubmissionFile\setDirectSalesPrice(), Section\setDisableComments(), PKPUser\setDisabled(), PKPUser\setDisabledReason(), SubmissionDiscipline\setDiscipline(), Submission\setDiscipline(), ExternalFeed\setDisplayBlock(), ExternalFeed\setDisplayHomepage(), FilterGroup\setDisplayName(), InstitutionalSubscription\setDomain(), PKPSection\setEditorRestricted(), ReviewFormElement\setElementType(), CrossrefNlm30CitationSchemaFilter\setEmail(), Identity\setEmail(), BaseEmailTemplate\setEmailId(), BaseEmailTemplate\setEmailKey(), Genre\setEnabled(), Context\setEnabled(), BaseEmailTemplate\setEnabled(), EmailLogEntry\setEventType(), EventLogEntry\setEventType(), AccessKey\setExpiryDate(), Article\setFastTracked(), PKPUser\setFax(), Note\setFile(), SubmissionFile\setFileId(), Signoff\setFileId(), IssueGalley\setFileId(), ArticleFile\setFileName(), Issue\setFileName(), Submission\setFileName(), Signoff\setFileRevision(), SubmissionFile\setFileStage(), PKPFile\setFileType(), LibraryFile\setFileType(), Identity\setFirstName(), BookForReviewAuthor\setFirstName(), BaseEmailTemplate\setFromRoleId(), PublishedArticle\setGalleys(), ArticleGalley\setGalleyType(), PKPUser\setGender(), SubmissionFile\setGenreId(), PKPGift\setGiftAssocId(), PKPGift\setGiftNote(), PKPGift\setGiftNoteTitle(), PKPGift\setGiftType(), PKPUser\setGossip(), Issue\setHeight(), Submission\setHeight(), Section\setHideAbout(), Submission\setHideAuthor(), Section\setHideAuthor(), Submission\setHideCoverPageAbstract(), Issue\setHideCoverPageArchives(), Issue\setHideCoverPageCover(), Submission\setHideCoverPageToc(), Section\setHideTitle(), ExternalFeed\setId(), BookForReviewAuthor\setId(), Section\setIdentifyType(), ReviewFormElement\setIncluded(), PKPSocialMedia\setIncludeInCatalog(), ReviewForm\setIncompleteCount(), Identity\setInitials(), PKPUser\setInlineHelp(), FilterGroup\setInputType(), Site\setInstalledLocales(), InstitutionalSubscription\setInstitutionMailingAddress(), InstitutionalSubscription\setInstitutionName(), EmailLogEntry\setIPAddress(), EventLogEntry\setIPAddress(), Session\setIpAddress(), InstitutionalSubscription\setIPRanges(), ArticleGalley\setIsAvailable(), IssueFile\setIssueId(), PublishedArticle\setIssueId(), EventLogEntry\setIsTranslated(), Issue\setJournalId(), Subscription\setJournalId(), ExternalFeed\setJournalId(), Article\setJournalId(), Genre\setKey(), AccessKey\setKeyHash(), SubmissionKeyword\setKeyword(), IssueGalley\setLabel(), ArticleGalley\setLabel(), SubmissionLanguage\setLanguage(), Submission\setLanguage(), Issue\setLastModified(), ReviewAssignment\setLastModified(), Submission\setLastModified(), Identity\setLastName(), BookForReviewAuthor\setLastName(), Version\setLazyLoad(), ExternalFeed\setLimitItems(), Referral\setLinkCount(), IssueGalley\setLocale(), ArticleGalley\setLocale(), Submission\setLocale(), PKPGift\setLocale(), PKPUser\setLocales(), PKPUser\setMailingAddress(), Version\setMajor(), Subscription\setMembership(), EventLogEntry\setMessage(), Section\setMetaIndexed(), Section\setMetaReviewed(), Identity\setMiddleName(), BookForReviewAuthor\setMiddleName(), Version\setMinor(), Site\setMinPasswordLength(), PKPUser\setMustChangePassword(), Context\setName(), Currency\setName(), Language\setName(), Representation\setName(), PKPAnnouncementType\setName(), ControlledVocabEntry\setName(), Genre\setName(), LibraryFile\setName(), Referral\setName(), UserGroup\setName(), SubmissionFile\setName(), Subscription\setNotes(), PKPGift\setNotes(), Issue\setNumber(), DataObjectTombstone\setOAIIdentifier(), DataObjectTombstone\setOAISetObjectsIds(), Process\setObliterated(), Issue\setOpenAccessDate(), PKPFile\setOriginalFileName(), LibraryFile\setOriginalFileName(), Issue\setOriginalFileName(), Submission\setOriginalFileName(), Site\setOriginalStyleFilename(), Issue\setOriginalStyleFileName(), FilterGroup\setOutputType(), Submission\setPages(), EventLogEntry\setParams(), Comment\setParentCommentId(), PKPUser\setPassword(), FooterCategory\setPath(), UserGroup\setPath(), Context\setPath(), UserGroup\setPermitSelfRegistration(), PKPUser\setPhone(), PKPSocialMedia\setPlatform(), AuthSource\setPlugin(), AuthSource\setPluginClass(), Section\setPolicy(), ReviewFormElement\setPossibleResponses(), Comment\setPosterEmail(), Comment\setPosterIP(), Comment\setPosterName(), Submission\setPrefix(), PKPAuthor\setPrimaryContact(), Context\setPrimaryLocale(), Site\setPrimaryLocale(), Process\setProcessType(), Version\setProduct(), Version\setProductClassName(), Version\setProductType(), Issue\setPublished(), PublishedArticle\setPublishedArticleId(), ReviewAssignment\setQuality(), ReviewFormElement\setQuestion(), ExternalFeed\setRecentItems(), PKPGift\setRecipientEmail(), PKPGift\setRecipientFirstName(), PKPGift\setRecipientLastName(), PKPGift\setRecipientMiddleName(), PKPGift\setRecipientUserId(), ReviewAssignment\setRecommendation(), Site\setRedirect(), Subscription\setReferenceNumber(), Session\setRemember(), ReviewAssignment\setReminderWasAutomatic(), ArticleGalley\setRemoteURL(), ReviewAssignment\setReplaced(), ReviewFormElement\setRequired(), ReviewFormResponse\setResponseType(), XSLTransformationFilter\setResultType(), ReviewAssignment\setReviewerFullName(), ReviewAssignment\setReviewerId(), ReviewFormResponse\setReviewFormElementId(), ReviewFormElement\setReviewFormId(), PKPSection\setReviewFormId(), ReviewAssignment\setReviewFormId(), ReviewFormResponse\setReviewId(), ReviewAssignment\setReviewMethod(), ReviewAssignment\setReviewRoundId(), Version\setRevision(), SubmissionFile\setRevision(), Submission\setRights(), UserGroup\setRoleId(), SubmissionComment\setRoleId(), ReviewRound\setRound(), ReviewAssignment\setRound(), SubmissionFile\setSalesType(), Identity\setSalutation(), Session\setSecondsCreated(), Session\setSecondsLastUsed(), Article\setSectionAbbrev(), Article\setSectionId(), Article\setSectionTitle(), EmailLogEntry\setSenderId(), Representation\setSeq(), PublishedArticle\setSeq(), ExternalFeed\setSeq(), PKPSection\setSequence(), ControlledVocabEntry\setSequence(), Genre\setSequence(), ReviewFormElement\setSequence(), PKPAuthor\setSequence(), IssueGalley\setSequence(), ReviewForm\setSequence(), BookForReviewAuthor\setSequence(), Context\setSequence(), PKPFile\setServerFileName(), LibraryFile\setServerFileName(), Session\setSessionData(), DataObjectTombstone\setSetName(), DataObjectTombstone\setSetSpec(), AuthSource\setSettings(), Issue\setShowCoverPage(), Submission\setShowCoverPage(), Issue\setShowNumber(), UserGroup\setShowTitle(), Issue\setShowTitle(), Issue\setShowVolume(), Issue\setShowYear(), PKPUser\setSignature(), Version\setSitewide(), Genre\setSortable(), Submission\setSource(), SubmissionFile\setSourceFileId(), SubmissionFile\setSourceRevision(), Submission\setSponsor(), StageAssignment\setStageId(), ReviewRound\setStageId(), ReviewAssignment\setStageId(), Submission\setStageId(), Referral\setStatus(), PKPGift\setStatus(), ReviewRound\setStatus(), Subscription\setStatus(), Submission\setStatus(), Representation\setStoredPubId(), ArticleFile\setStoredPubId(), Submission\setStoredPubId(), IssueGalley\setStoredPubId(), Issue\setStoredPubId(), Issue\setStyleFileName(), SubmissionSubject\setSubject(), Submission\setSubject(), Submission\setSubjectClass(), StageAssignment\setSubmissionId(), PKPAuthor\setSubmissionId(), ReviewRound\setSubmissionId(), ReviewAssignment\setSubmissionId(), LibraryFile\setSubmissionId(), Comment\setSubmissionId(), Representation\setSubmissionId(), SubmissionComment\setSubmissionId(), SubmissionFile\setSubmissionId(), Submission\setSubmissionProgress(), Submission\setSubtitle(), Identity\setSuffix(), Site\setSupportedLocales(), FilterGroup\setSymbolic(), ControlledVocab\setSymbolic(), Signoff\setSymbolic(), Process\setTimeStarted(), AuthSource\setTitle(), Issue\setTitle(), FooterCategory\setTitle(), PKPSection\setTitle(), FooterLink\setTitle(), PKPAnnouncement\setTitle(), Comment\setTitle(), ReviewForm\setTitle(), ExternalFeed\setTitle(), Submission\setTitle(), BaseEmailTemplate\setToRoleId(), LibraryFile\setType(), Submission\setType(), PKPAnnouncement\setTypeId(), Subscription\setTypeId(), ReviewAssignment\setUnconsidered(), SubmissionFile\setUploaderUserId(), Referral\setURL(), FooterLink\setUrl(), ExternalFeed\setUrl(), Identity\setUrl(), Comment\setUser(), Session\setUserAgent(), PKPAuthor\setUserGroupId(), StageAssignment\setUserGroupId(), Signoff\setUserGroupId(), SubmissionFile\setUserGroupId(), EventLogEntry\setUserId(), TemporaryFile\setUserId(), Subscription\setUserId(), AccessKey\setUserId(), Session\setUserId(), StageAssignment\setUserId(), Signoff\setUserId(), Submission\setUserId(), PKPUser\setUsername(), ReviewFormResponse\setValue(), SubmissionComment\setViewable(), Issue\setVolume(), Issue\setWidth(), Submission\setWidth(), XSLTransformationFilter\setXSL(), XSLTransformationFilter\setXSLFilename(), and Issue\setYear().

DataObject::setHasLoadableAdapters (   $hasLoadableAdapters)

Set whether the object has loadable meta-data adapters

Parameters
$hasLoadableAdaptersboolean

Definition at line 247 of file DataObject.inc.php.

Referenced by Representation\Representation(), and Submission\Submission().

DataObject::setId (   $id)

Set ID of object.

Parameters
$idint

Definition at line 199 of file DataObject.inc.php.

Referenced by PKPRole\PKPRole(), PKPFile\setFileId(), and PKPRole\setRoleId().

DataObject::upcastTo (   $targetObject)

Upcast this data object to the target object.

We use the DataObject's getAllData() and setAllData() interface to upcast objects. This means that if the default implementations of these methods do not provide data that is adequate for upcasting between objects of the same inheritance hierarchy then objects that need more complicated casting behavior must override these methods.

Our implementation also implies that the target has to inherit from the source object and thereby implicitly from DataObject.

Note: Data in the target object will be overwritten. We do not clone the target object before we upcast.

Parameters
$targetObjectDataObject The object to cast to.
Returns
DataObject The upcast target object.

Definition at line 227 of file DataObject.inc.php.

Member Data Documentation

array DataObject::$_data = array()

Array of object data

Definition at line 23 of file DataObject.inc.php.

boolean DataObject::$_extractionAdaptersLoaded = false

whether extraction adapters have already been loaded from the database

Definition at line 41 of file DataObject.inc.php.

boolean DataObject::$_hasLoadableAdapters = false

whether this objects loads meta-data adapters from the database

Definition at line 29 of file DataObject.inc.php.

boolean DataObject::$_injectionAdaptersLoaded = false

whether injection adapters have already been loaded from the database

Definition at line 53 of file DataObject.inc.php.

array DataObject::$_metadataExtractionAdapters = array()

an array of meta-data extraction adapters (one per supported schema)

Definition at line 35 of file DataObject.inc.php.

array DataObject::$_metadataInjectionAdapters = array()

an array of meta-data injection adapters (one per supported schema)

Definition at line 47 of file DataObject.inc.php.


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