classes/paper/SuppFile.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 //$Id$
00017 
00018 import('paper.PaperFile');
00019 
00020 class SuppFile extends PaperFile {
00021 
00025    function SuppFile() {
00026       parent::DataObject();
00027    }
00028 
00029    //
00030    // Get/set methods
00031    //
00032 
00037    function getSuppFileId() {
00038       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00039       return $this->getId();
00040    }
00041 
00046    function setSuppFileId($suppFileId) {
00047       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00048       return $this->setId($suppFileId);
00049    }
00050 
00055    function getPublicSuppFileId() {
00056       // Ensure that blanks are treated as nulls
00057       $returner = $this->getData('publicSuppFileId');
00058       if ($returner === '') return null;
00059       return $returner;
00060    }
00061 
00066    function setPublicSuppFileId($publicSuppFileId) {
00067       return $this->setData('publicSuppFileId', $publicSuppFileId);
00068    }
00069 
00074    function getPaperId() {
00075       return $this->getData('paperId');
00076    }
00077 
00082    function setPaperId($paperId) {
00083       return $this->setData('paperId', $paperId);
00084    }
00085 
00090    function getSuppFileTitle() {
00091       return $this->getLocalizedData('title');
00092    }
00093 
00099    function getTitle() {
00100       return $this->getData('title');
00101    }
00102 
00108    function setTitle($title, $locale) {
00109       return $this->setData('title', $title, $locale);
00110    }
00111 
00116    function getSuppFileCreator() {
00117       return $this->getLocalizedData('creator');
00118    }
00119 
00125    function getCreator($locale) {
00126       return $this->getData('creator', $locale);
00127    }
00128 
00134    function setCreator($creator, $locale) {
00135       return $this->setData('creator', $creator, $locale);
00136    }
00137 
00142    function getSuppFileSubject() {
00143       return $this->getLocalizedData('subject');
00144    }
00145 
00151    function getSubject($locale) {
00152       return $this->getData('subject', $locale);
00153    }
00154 
00160    function setSubject($subject, $locale) {
00161       return $this->setData('subject', $subject, $locale);
00162    }
00163 
00168    function getType() {
00169       return $this->getData('type');
00170    }
00171 
00176    function setType($type) {
00177       return $this->setData('type', $type);
00178    }
00179 
00184    function getSuppFileTypeOther() {
00185       return $this->getLocalizedData('typeOther');
00186    }
00187 
00193    function getTypeOther($locale) {
00194       return $this->getData('typeOther', $locale);
00195    }
00196 
00202    function setTypeOther($typeOther, $locale) {
00203       return $this->setData('typeOther', $typeOther, $locale);
00204    }
00205 
00210    function getSuppFileDescription() {
00211       return $this->getLocalizedData('description');
00212    }
00213 
00219    function getDescription($locale) {
00220       return $this->getData('description', $locale);
00221    }
00222 
00228    function setDescription($description, $locale) {
00229       return $this->setData('description', $description, $locale);
00230    }
00231 
00236    function getSuppFilePublisher() {
00237       return $this->getLocalizedData('publisher');
00238    }
00239 
00245    function getPublisher($locale) {
00246       return $this->getData('publisher', $locale);
00247    }
00248 
00254    function setPublisher($publisher, $locale) {
00255       return $this->setData('publisher', $publisher, $locale);
00256    }
00257 
00262    function getSuppFileSponsor() {
00263       return $this->getLocalizedData('sponsor');
00264    }
00265 
00271    function getSponsor($locale) {
00272       return $this->getData('sponsor', $locale);
00273    }
00274 
00280    function setSponsor($sponsor, $locale) {
00281       return $this->setData('sponsor', $sponsor, $locale);
00282    }
00283 
00288    function getDateCreated() {
00289       return $this->getData('dateCreated');
00290    }
00291 
00296    function setDateCreated($dateCreated) {
00297       return $this->setData('dateCreated', $dateCreated);
00298    }
00299 
00304    function getSuppFileSource() {
00305       return $this->getLocalizedData('source');
00306    }
00307 
00313    function getSource($locale) {
00314       return $this->getData('source', $locale);
00315    }
00316 
00322    function setSource($source, $locale) {
00323       return $this->setData('source', $source, $locale);
00324    }
00325 
00330    function getLanguage() {
00331       return $this->getData('language');
00332    }
00333 
00338    function setLanguage($language) {
00339       return $this->setData('language', $language);
00340    }
00341 
00346    function getShowReviewers() {
00347       return $this->getData('showReviewers');
00348    }
00349 
00354    function setShowReviewers($showReviewers) {
00355       return $this->setData('showReviewers', $showReviewers);
00356    }
00357 
00362    function getDateSubmitted() {
00363       return $this->getData('dateSubmitted');
00364    }
00365 
00370    function setDateSubmitted($dateSubmitted) {
00371       return $this->setData('dateSubmitted', $dateSubmitted);
00372    }
00373 
00378    function getSequence() {
00379       return $this->getData('sequence');
00380    }
00381 
00386    function setSequence($sequence) {
00387       return $this->setData('sequence', $sequence);
00388    }
00389 
00397    function getBestSuppFileId($schedConf = null) {
00398       // Retrieve the sched conf, if necessary.
00399       if (!isset($schedConf)) {
00400          $paperDao =& DAORegistry::getDAO('PaperDAO');
00401          $paper =& $paperDao->getPaper($this->getPaperId());
00402          $schedConfDao =& DAORegistry::getDAO('SchedConfDAO');
00403          $schedConf =& $schedConfDao->getSchedConf($paper->getSchedConfId());
00404       }
00405 
00406       if ($schedConf->getSetting('enablePublicSuppFileId')) {
00407          $publicSuppFileId = $this->getPublicSuppFileId();
00408          if (!empty($publicSuppFileId)) return $publicSuppFileId;
00409       }
00410       return $this->getId();
00411    }
00412 }
00413 
00414 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7