• Main Page
  • Modules
  • Classes
  • Files
  • File List

omp.JipGdx/omp-1.0b/classes/monograph/Chapter.inc.php

00001 <?php
00002 
00016 class Chapter extends DataObject {
00020    function Chapter() {
00021       parent::DataObject();
00022    }
00023 
00024    //
00025    // Get/set methods
00026    //
00031    function getMonographId() {
00032       return $this->getData('monographId');
00033    }
00034 
00039    function setMonographId($monographId) {
00040       return $this->setData('monographId', $monographId);
00041    }
00042 
00047    function getLocalizedFullTitle() {
00048 
00049       $fullTitle = $this->getLocalizedTitle();
00050 
00051       if ($subtitle = $this->getLocalizedSubtitle()) {
00052          $fullTitle = String::concatTitleFields(array($fullTitle, $subtitle));
00053       }
00054 
00055       return $fullTitle;
00056    }
00057 
00061    function getLocalizedTitle() {
00062       return $this->getLocalizedData('title');
00063    }
00064 
00070    function getTitle($locale = null) {
00071       return $this->getData('title', $locale);
00072    }
00073 
00079    function setTitle($title, $locale = null) {
00080       return $this->setData('title', $title, $locale);
00081    }
00082 
00086    function getLocalizedSubtitle() {
00087       return $this->getLocalizedData('subtitle');
00088    }
00089 
00095    function getSubtitle($locale = null) {
00096       return $this->getData('subtitle', $locale);
00097    }
00098 
00104    function setSubtitle($subtitle, $locale = null) {
00105       return $this->setData('subtitle', $subtitle, $locale);
00106    }
00107 
00112    function getSequence() {
00113       return $this->getData('sequence');
00114    }
00115 
00120    function setSequence($sequence) {
00121       return $this->setData('sequence', $sequence);
00122    }
00123 
00128    function &getAuthors() {
00129       $chapterAuthorDao =& DAORegistry::getDAO('ChapterAuthorDAO'); /* @var $chapterAuthorDao ChapterAuthorDAO */
00130       $returner =& $chapterAuthorDao->getAuthors($this->getMonographId(), $this->getId());
00131       return $returner;
00132    }
00133 }
00134 
00135 ?>

Generated on Mon Sep 17 2012 13:00:00 for Open Monograph Press by  doxygen 1.7.1