[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
ojs
/
248
/
lib
/
pkp
/
classes
/
tombstone
/
[
Home
]
File: DataObjectTombstone.inc.php
<?php /** * @file classes/tombstone/DataObjectTombstone.inc.php * * Copyright (c) 2013-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class DataObjectTombstone * @ingroup tombstone * * @brief Base class for data object tombstones. */ class DataObjectTombstone extends DataObject { /** * Constructor. */ function DataObjectTombstone() { parent::DataObject(); } /** * get data object id * @return int */ function getDataObjectId() { return $this->getData('dataObjectId'); } /** * set data object id * @param $dataObjectId int */ function setDataObjectId($dataObjectId) { return $this->setData('dataObjectId', $dataObjectId); } /** * get date deleted * @return date */ function getDateDeleted() { return $this->getData('dateDeleted'); } /** * set date deleted * @param $dateDeleted date */ function setDateDeleted($dateDeleted) { return $this->setData('dateDeleted', $dateDeleted); } /** * Stamp the date of the deletion to the current time. */ function stampDateDeleted() { return $this->setDateDeleted(Core::getCurrentDate()); } /** * Get oai setSpec. * @return string */ function getSetSpec() { return $this->getData('setSpec'); } /** * Set oai setSpec. * @param $setSpec string */ function setSetSpec($setSpec) { return $this->setData('setSpec', $setSpec); } /** * Get oai setName. * @return string */ function getSetName() { return $this->getData('setName'); } /** * Set oai setName. * @param $setName string */ function setSetName($setName) { return $this->setData('setName', $setName); } /** * Get oai identifier. * @return string */ function getOAIIdentifier() { return $this->getData('oaiIdentifier'); } /** * Set oai identifier. * @param $oaiIdentifier string */ function setOAIIdentifier($oaiIdentifier) { return $this->setData('oaiIdentifier', $oaiIdentifier); } /** * Get an specific object id that is part of * the OAI set of this tombstone. * @param $assocType int * @return int The object id. */ function getOAISetObjectId($assocType) { $setObjectsIds = $this->getOAISetObjectsIds(); if (isset($setObjectsIds[$assocType])) { return $setObjectsIds[$assocType]; } else { return null; } } /** * Set an specific object id that is part of * the OAI set of this tombstone. * @param $assocType int * @param $assocId int */ function setOAISetObjectId($assocType, $assocId) { $setObjectsIds = $this->getOAISetObjectsIds(); $setObjectsIds[$assocType] = $assocId; $this->setOAISetObjectsIds($setObjectsIds); } /** * Get all objects ids that are part of * the OAI set of this tombstone. * @return array assocType => assocId */ function getOAISetObjectsIds() { return $this->getData('OAISetObjectsIds'); } /** * Set all objects ids that are part of * the OAI set of this tombstone. * @param $OAISetObjectsIds array assocType => assocId */ function setOAISetObjectsIds($OAISetObjectsIds) { $this->setData('OAISetObjectsIds', $OAISetObjectsIds); } } ?>