%PDF-1.7 GIF89;
| Server IP : 104.20.45.2 / Your IP : 172.16.20.3 Web Server : Apache/2.4.25 (Debian) System : Linux f64a392e70de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : application ( 1000) PHP Version : 5.6.40 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /app/plugins/generic/externalFeed/ |
Upload File : |
<?php
/**
* @file plugins/generic/externalFeed/ExternalFeed.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 ExternalFeed
* @ingroup plugins_generic_externalFeed
*
* @brief Basic class describing an external feed.
*/
define('EXTERNAL_FEED_DISPLAY_BLOCK_NONE', 0);
define('EXTERNAL_FEED_DISPLAY_BLOCK_HOMEPAGE', 1);
define('EXTERNAL_FEED_DISPLAY_BLOCK_ALL', 2);
class ExternalFeed extends DataObject {
function ExternalFeed() {
parent::DataObject();
}
//
// Get/set methods
//
/**
* Get the ID of the external feed.
* @return int
*/
function getId() {
return $this->getData('feedId');
}
/**
* Set the ID of the external feed.
* @param $feedId int
*/
function setId($feedId) {
return $this->setData('feedId', $feedId);
}
/**
* Get the journal ID of the external feed.
* @return int
*/
function getJournalId() {
return $this->getData('journalId');
}
/**
* Set the journal ID of the external feed.
* @param $journalId int
*/
function setJournalId($journalId) {
return $this->setData('journalId', $journalId);
}
/**
* Get feed URL.
* @return int
*/
function getUrl() {
return $this->getData('url');
}
/**
* Set feed URL.
* @param $url string
*/
function setUrl($url) {
return $this->setData('url', $url);
}
/**
* Get feed display sequence.
* @return float
*/
function getSeq() {
return $this->getData('seq');
}
/**
* Set feed display sequence
* @param $sequence float
*/
function setSeq($seq) {
return $this->setData('seq', $seq);
}
/**
* Get homepage display of the external feed.
* @return int
*/
function getDisplayHomepage() {
return $this->getData('displayHomepage');
}
/**
* Set the homepage display of the external feed.
* @param $displayHomepage int
*/
function setDisplayHomepage($displayHomepage) {
return $this->setData('displayHomepage', $displayHomepage);
}
/**
* Get block display of the external feed.
* @return int
*/
function getDisplayBlock() {
return $this->getData('displayBlock');
}
/**
* Set the block display of the external feed.
* @param $displayBlock int
*/
function setDisplayBlock($displayBlock) {
return $this->setData('displayBlock', $displayBlock);
}
/**
* Get limit items of the external feed.
* @return int
*/
function getLimitItems() {
return $this->getData('limitItems');
}
/**
* Set limit items of the external feed.
* @param $limitItems int
*/
function setLimitItems($limitItems) {
return $this->setData('limitItems', $limitItems);
}
/**
* Get recent items of the external feed.
* @return int
*/
function getRecentItems() {
return $this->getData('recentItems');
}
/**
* Set recent items of the external feed.
* @param $recentItems int
*/
function setRecentItems($recentItems) {
return $this->setData('recentItems', $recentItems);
}
/**
* Get the localized title
* @return string
*/
function getLocalizedTitle() {
return $this->getLocalizedData('title');
}
/**
* Get feed title
* @param $locale string
* @return string
*/
function getTitle($locale) {
return $this->getData('title', $locale);
}
/**
* Set feed title
* @param $title string
* @param $locale string
*/
function setTitle($title, $locale) {
return $this->setData('title', $title, $locale);
}
}
?>