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.
15 * @see ReviewerFormDAO
17 * @brief Basic class describing a review form.
21 class ReviewForm
extends DataObject
{
26 function ReviewForm() {
31 * Get localized title.
34 function getReviewFormTitle() {
35 return $this->getLocalizedData('title');
39 * Get localized description.
42 function getReviewFormDescription() {
43 return $this->getLocalizedData('description');
51 * Get the ID of the review form.
54 function getReviewFormId() {
55 return $this->getData('reviewFormId');
59 * Set the ID of the review form.
60 * @param $reviewFormId int
62 function setReviewFormId($reviewFormId) {
63 return $this->setData('reviewFormId', $reviewFormId);
67 * Get the number of completed reviews for this review form.
70 function getCompleteCount() {
71 return $this->getData('completeCount');
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);
83 * Get the number of incomplete reviews for this review form.
86 function getIncompleteCount() {
87 return $this->getData('incompleteCount');
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);
99 * Get ID of the press.
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.
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);
134 function getActive() {
135 return $this->getData('active');
142 function setActive($active) {
143 return $this->setData('active', $active);
148 * @param $locale string
151 function getTitle($locale) {
152 return $this->getData('title', $locale);
157 * @param $title string
158 * @param $locale string
160 function setTitle($title, $locale) {
161 return $this->setData('title', $title, $locale);
166 * @param $locale string
169 function getDescription($locale) {
170 return $this->getData('description', $locale);
175 * @param $description string
176 * @param $locale string
178 function setDescription($description, $locale) {
179 return $this->setData('description', $description, $locale);