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 |
---|
string
The language to set the title for
string
The 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 |
---|
array
Array 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.
array
getKeyValuePairs(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
array
getPublishedState() : array
active is defined as: the questionnaire is activated and current time is between start and end date
array
getQuestionnaire(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_Collection
getTitle(string $language) : string
Creates an empty translation if nothing was found and the questionnaire exists in the database.
string
string
Title or empty stringgetTotalPages(int $id) : int
int
ID of the questionnaire
int
Number 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
bool
Not used
array
_getAnswerCell(\Webenq_Model_QuestionnaireQuestion $parent, \Webenq_Model_Respondent $respondent, array $row)
_getQuestionCell(\Webenq_Model_QuestionnaireQuestion $parent, array $row)