Class KSSurvey

Description

Located in /apps/survey/class/kssurvey.class.php (line 15)

KSElement
   |
   --KSSurvey
Variable Summary
mixed $answers
mixed $questions
Method Summary
void getAllAnswers ()
void getAllQuestions ()
void getAnswerById (mixed $questionid)
void getQuestionById (mixed $questionid)
void setAnswerById (mixed $questionid, mixed $answer)
void setAnswers (mixed $answers)
void setQuestions (mixed $questions)
void userAnswered ()
Variables
mixed $answers (line 21)
  • access: protected
mixed $questions (line 17)
  • access: protected

Inherited Variables

Inherited from KSElement

KSElement::$creator
KSElement::$currentUser
KSElement::$infos
KSElement::$rights
KSElement::$userFactory
Methods
getAllAnswers (line 30)
  • access: public
void getAllAnswers ()
getAllQuestions (line 26)

Get all methods

  • access: public
void getAllQuestions ()
getAnswerById (line 77)

This method get a answer for the question defined by the questionid

It works decently only in the cas where there is one version of answers of one user

  • access: public
void getAnswerById (mixed $questionid)
getQuestionById (line 36)
  • access: public
void getQuestionById (mixed $questionid)
setAnswerById (line 60)
  • access: public
void setAnswerById (mixed $questionid, mixed $answer)
setAnswers (line 56)
  • access: public
void setAnswers (mixed $answers)
setQuestions (line 52)

Set methods

  • access: public
void setQuestions (mixed $questions)
userAnswered (line 101)

This method defines if the user has already answered the survey

  • access: public
void userAnswered ()

Inherited Methods

Inherited From KSElement

KSElement::__construct()

Documentation generated on Sat, 17 Feb 2007 02:55:01 +0100 by phpDocumentor 1.3.0RC3