One Hat Cyber Team
Your IP :
216.73.216.182
Server IP :
203.175.9.166
Server :
Linux tanggamus.iixcp.rumahweb.net 5.14.0-427.28.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 2 03:44:10 EDT 2024 x86_64
Server Software :
LiteSpeed
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
cite5577
/
www
/
lib
/
pkp
/
classes
/
tombstone
/
View File Name :
DataObjectTombstone.inc.php
<?php /** * @file classes/tombstone/DataObjectTombstone.inc.php * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class DataObjectTombstone * @ingroup tombstone * * @brief Base class for data object tombstones. */ class DataObjectTombstone extends DataObject { /** * get data object id * @return int */ function getDataObjectId() { return $this->getData('dataObjectId'); } /** * set data object id * @param $dataObjectId int */ function setDataObjectId($dataObjectId) { $this->setData('dataObjectId', $dataObjectId); } /** * get date deleted * @return date */ function getDateDeleted() { return $this->getData('dateDeleted'); } /** * set date deleted * @param $dateDeleted date */ function setDateDeleted($dateDeleted) { $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) { $this->setData('setSpec', $setSpec); } /** * Get oai setName. * @return string */ function getSetName() { return $this->getData('setName'); } /** * Set oai setName. * @param $setName string */ function setSetName($setName) { $this->setData('setName', $setName); } /** * Get oai identifier. * @return string */ function getOAIIdentifier() { return $this->getData('oaiIdentifier'); } /** * Set oai identifier. * @param $oaiIdentifier string */ function setOAIIdentifier($oaiIdentifier) { $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); } }