baseline
[omp.pkp.sfu.ca.git] / classes / reviewForm / ReviewForm.inc.php
bloba3914bb0fb760d195d679c3ed2a84a8ebaac291a
1 <?php
3 /**
4 * @defgroup reviewForm
5 */
7 /**
8 * @file classes/reviewForm/ReviewForm.inc.php
10 * Copyright (c) 2003-2009 John Willinsky
11 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
13 * @class ReviewForm
14 * @ingroup reviewForm
15 * @see ReviewerFormDAO
17 * @brief Basic class describing a review form.
21 class ReviewForm extends DataObject {
23 /**
24 * Constructor.
26 function ReviewForm() {
27 parent::DataObject();
30 /**
31 * Get localized title.
32 * @return string
34 function getReviewFormTitle() {
35 return $this->getLocalizedData('title');
38 /**
39 * Get localized description.
40 * @return array
42 function getReviewFormDescription() {
43 return $this->getLocalizedData('description');
47 // Get/set methods
50 /**
51 * Get the ID of the review form.
52 * @return int
54 function getReviewFormId() {
55 return $this->getData('reviewFormId');
58 /**
59 * Set the ID of the review form.
60 * @param $reviewFormId int
62 function setReviewFormId($reviewFormId) {
63 return $this->setData('reviewFormId', $reviewFormId);
66 /**
67 * Get the number of completed reviews for this review form.
68 * @return int
70 function getCompleteCount() {
71 return $this->getData('completeCount');
74 /**
75 * Set the number of complete reviews for this review form.
76 * @param $completeCount int
78 function setCompleteCount($completeCount) {
79 return $this->setData('completeCount', $completeCount);
82 /**
83 * Get the number of incomplete reviews for this review form.
84 * @return int
86 function getIncompleteCount() {
87 return $this->getData('incompleteCount');
90 /**
91 * Set the number of incomplete reviews for this review form.
92 * @param $incompleteCount int
94 function setIncompleteCount($incompleteCount) {
95 return $this->setData('incompleteCount', $incompleteCount);
98 /**
99 * Get ID of the press.
100 * @return int
102 function getPressId() {
103 return $this->getData('pressId');
107 * Set ID of the press.
108 * @param $pressId int
110 function setPressId($pressId) {
111 return $this->setData('pressId', $pressId);
115 * Get sequence of review form.
116 * @return float
118 function getSequence() {
119 return $this->getData('sequence');
123 * Set sequence of review form.
124 * @param $sequence float
126 function setSequence($sequence) {
127 return $this->setData('sequence', $sequence);
131 * Get active flag
132 * @return int
134 function getActive() {
135 return $this->getData('active');
139 * Set active flag
140 * @param $active int
142 function setActive($active) {
143 return $this->setData('active', $active);
147 * Get title.
148 * @param $locale string
149 * @return string
151 function getTitle($locale) {
152 return $this->getData('title', $locale);
156 * Set title.
157 * @param $title string
158 * @param $locale string
160 function setTitle($title, $locale) {
161 return $this->setData('title', $title, $locale);
165 * Get description.
166 * @param $locale string
167 * @return string
169 function getDescription($locale) {
170 return $this->getData('description', $locale);
174 * Set description.
175 * @param $description string
176 * @param $locale string
178 function setDescription($description, $locale) {
179 return $this->setData('description', $description, $locale);