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 $ |
edit()
existsInMultipleQuestionnaires() : bool
bool
True or falsefind($id)
fromArray(array $array, $deep)
getAnswer(\Webenq_Model_Respondent $respondent)
getAnswerOptions($questionText)
getAvailablePresentationMethod($type)
getFormElement(\Webenq_Model_Respondent $respondent) : \Zend_Form_SubForm | \Zend_Form_Element
\Webenq_Model_Respondent
(optional) If provided the form element is filled with the respondent's answer
\Zend_Form_SubForm
\Zend_Form_Element
getQuestionText()
getSubQuestions(\Webenq_Model_QuestionnaireQuestion | array $qq, $mode) : \Doctrine_Collection
Note that the grouping of questions can be different for collection mode and reporting mode. Therefor, the mode can be given as second parameter. It defaults to the mode 'collection'.
Can be 'collection' or 'report'
\Doctrine_Collection
containing instances of QuestionnaireQuestiongetType()
getXformBindElements(\DOMDocument $xml, array $elements) : \DOMElement
getXformData(\Webenq_Model_Respondent $respondent, \DOMDocument $xml, \DOMElement $group)
getXformElement(\DOMDocument $xml, \DOMElement $group) : \DOMElement
getXformInstanceElement(\DOMDocument $xml, \DOMElement $group) : \DOMElement
getXpath() : string
string
hasAnswer(\Webenq_Model_Respondent $respondent)
saveQuestionText()
setTableDefinition()
inherited_from | \Webenq_Model_Base_QuestionnaireQuestion::setTableDefinition() |
---|
setUp()
inherited_from | \Webenq_Model_Base_QuestionnaireQuestion::setUp() |
---|
toArray(bool $deep, bool $prefixKey) : array
_getParents() : array
todo | It now returns the parents of the current questionnaire-quesiton, following the hierarchy of the data collection. In the future this should be changed to reporting hierarchy. Data collection and data reporting do not need to follow the same structure. |
---|
array
$_questionText : string