Questionnaire class definition
This class has been auto-generated by the Doctrine ORM Framework
| package | Webenq_Models |
|---|---|
| author | Bart Huttinga |
| subpackage | |
| version | SVN: $Id: Builder.php,v 1.2 2011/07/12 13:39:03 bart Exp $ |
addQuestionnaireTitle(string $language, string $title) : \Webenq_Model_Questionnaire
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringThe language to set the title for
stringThe questionnaire title for the given language
addQuestionnaireTitles(array $titles) : \Webenq_Model_Questionnaire
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
arrayArray with language codes as keys and questionnaire titles as values
countAnsweredQuestions(\Webenq_Model_Respondent $respondent)
fromArray(array $array, bool $deep)
getAnsweredQuestions(\Webenq_Model_Respondent $respondent)
| deprecated | |
|---|---|
| todo | This method has been renamed to countAnsweredQuestions, so this one should be removed when all calls have been renamed as well |
getCurrentPage(\Webenq_Model_Questionnaire $questionaire, \Webenq_Model_Respondent $respondent)
getDataAsSpreadsheetArray() : array
Each row contains the answers of one respondent.
arraygetKeyValuePairs(string $language) : array
If a language is provided the corresponding translation of the title is used. If not provided, the current language is used. Else one of the preferred languages is used. Otherwise just any language.
string
arraygetPublishedState() : array
active is defined as: the questionnaire is activated and current time is between start and end date
arraygetQuestionnaire(int $id, string $language, int $page, \Webenq_Model_Respondent $respondent, $includeAnswers) : \Webenq_Model_Questionnaire
int
string@obsolete?
int@obsolete
getQuestionnaires($category, $id)
getQuestionsAndAnswersAsArray()
getRespondents() : \Doctrine_Collection
\Doctrine_CollectiongetTitle(string $language) : string
Creates an empty translation if nothing was found and the questionnaire exists in the database.
string
stringTitle or empty stringgetTotalPages(int $id) : int
intID of the questionnaire
intNumber of pagesgetTotalQuestions()
setTableDefinition()
| inherited_from | \Webenq_Model_Base_Questionnaire::setTableDefinition() |
|---|
setUp()
| inherited_from | \Webenq_Model_Base_Questionnaire::setUp() |
|---|
toArray(bool $deep, bool $prefixKey) : array
| see | \fromArray() |
|---|---|
| see | \Doctrine_Record::fromArray() |
bool
boolNot used
array_getAnswerCell(\Webenq_Model_QuestionnaireQuestion $parent, \Webenq_Model_Respondent $respondent, array $row)
_getQuestionCell(\Webenq_Model_QuestionnaireQuestion $parent, array $row)