getLocalizedData('question'); } /** * Get localized list of possible responses. * @return array */ function getLocalizedPossibleResponses() { return $this->getLocalizedData('possibleResponses'); } // // Get/set methods // /** * Get the review form ID of the review form element. * @return int */ function getReviewFormId() { return $this->getData('reviewFormId'); } /** * Set the review form ID of the review form element. * @param $reviewFormId int */ function setReviewFormId($reviewFormId) { return $this->setData('reviewFormId', $reviewFormId); } /** * Get sequence of review form element. * @return float */ function getSequence() { return $this->getData('sequence'); } /** * Set sequence of review form element. * @param $sequence float */ function setSequence($sequence) { return $this->setData('sequence', $sequence); } /** * Get the type of the review form element. * @return string */ function getElementType() { return $this->getData('reviewFormElementType'); } /** * Set the type of the review form element. * @param $reviewFormElementType string */ function setElementType($reviewFormElementType) { return $this->setData('reviewFormElementType', $reviewFormElementType); } /** * Get required flag * @return boolean */ function getRequired() { return $this->getData('required'); } /** * Set required flag * @param $viewable boolean */ function setRequired($required) { return $this->setData('required', $required); } /** * get included * @return boolean */ function getIncluded() { return $this->getData('included'); } /** * set included * @param $included boolean */ function setIncluded($included) { return $this->setData('included', $included); } /** * Get question. * @param $locale string * @return string */ function getQuestion($locale) { return $this->getData('question', $locale); } /** * Set question. * @param $question string * @param $locale string */ function setQuestion($question, $locale) { return $this->setData('question', $question, $locale); } /** * Get possible response. * @param $locale string * @return string */ function getPossibleResponses($locale) { return $this->getData('possibleResponses', $locale); } /** * Set possibleResponse. * @param $possibleResponse string * @param $locale string */ function setPossibleResponses($possibleResponses, $locale) { return $this->setData('possibleResponses', $possibleResponses, $locale); } /** * Get an associative array matching review form element type codes with locale strings. * (Includes default '' => "Choose One" string.) * @return array reviewFormElementType => localeString */ function &getReviewFormElementTypeOptions() { static $reviewFormElementTypeOptions = array( '' => 'manager.reviewFormElements.chooseType', REVIEW_FORM_ELEMENT_TYPE_SMALL_TEXT_FIELD => 'manager.reviewFormElements.smalltextfield', REVIEW_FORM_ELEMENT_TYPE_TEXT_FIELD => 'manager.reviewFormElements.textfield', REVIEW_FORM_ELEMENT_TYPE_TEXTAREA => 'manager.reviewFormElements.textarea', REVIEW_FORM_ELEMENT_TYPE_CHECKBOXES => 'manager.reviewFormElements.checkboxes', REVIEW_FORM_ELEMENT_TYPE_RADIO_BUTTONS => 'manager.reviewFormElements.radiobuttons', REVIEW_FORM_ELEMENT_TYPE_DROP_DOWN_BOX => 'manager.reviewFormElements.dropdownbox' ); return $reviewFormElementTypeOptions; } /** * Get an array of all multiple responses element types. * @return array reviewFormElementTypes */ function &getMultipleResponsesElementTypes() { static $multipleResponsesElementTypes = array(REVIEW_FORM_ELEMENT_TYPE_CHECKBOXES, REVIEW_FORM_ELEMENT_TYPE_RADIO_BUTTONS, REVIEW_FORM_ELEMENT_TYPE_DROP_DOWN_BOX); return $multipleResponsesElementTypes; } /** DEPRECATED **/ /** * Get localized question. * @return string */ function getReviewFormElementQuestion() { if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.'); return $this->getLocalizedQuestion(); } /** * Get localized list of possible responses. * @return array */ function getReviewFormElementPossibleResponses() { if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.'); return $this->getLocalizedPossibleResponses(); } /** * Get the ID of the review form element. * @return int */ function getReviewFormElementId() { if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.'); return $this->getId(); } /** * Set the ID of the review form element. * @param $reviewFormElementId int */ function setReviewFormElementId($reviewFormElementId) { if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.'); return $this->setId(); } } ?>