CMS
Version 3.9
questionnaire_answer.inc
Go to the documentation of this file.
1
<?php
7
/**************************************************************
8
9
Copyright (c) 2010 Sonjara, Inc
10
11
Permission is hereby granted, free of charge, to any person
12
obtaining a copy of this software and associated documentation
13
files (the "Software"), to deal in the Software without
14
restriction, including without limitation the rights to use,
15
copy, modify, merge, publish, distribute, sublicense, and/or sell
16
copies of the Software, and to permit persons to whom the
17
Software is furnished to do so, subject to the following
18
conditions:
19
20
The above copyright notice and this permission notice shall be
21
included in all copies or substantial portions of the Software.
22
23
Except as contained in this notice, the name(s) of the above
24
copyright holders shall not be used in advertising or otherwise
25
to promote the sale, use or other dealings in this Software
26
without prior written authorization.
27
28
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
30
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
32
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
33
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
34
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35
OTHER DEALINGS IN THE SOFTWARE.
36
37
*****************************************************************/
38
39
abstract
class
AbstractQuestionnaireAnswer
extends
DataItem
40
{
41
42
function
AbstractQuestionnaireAnswer
()
43
{
44
45
}
46
47
abstract
function
Question
();
48
49
abstract
function
Response
();
50
}
51
52
class
QuestionnaireAnswer
extends
AbstractQuestionnaireAnswer
53
{
54
var
$fields
= array (
"answer_id"
=> Number,
55
"response_id"
=> Number,
56
"question_id"
=> Number,
57
"value"
=> String,
58
);
59
60
61
var
$relations
= array (
"Question"
=>
Question
,
62
"Response"
=>
QuestionnaireResponse
,
63
);
64
65
function
Question
()
66
{
67
return
$this->getRelated(
Question
,
"question_id"
);
68
}
69
70
function
Response
()
71
{
72
return
$this->getRelated(
QuestionnaireResponse
);
73
}
74
75
function
QuestionnaireAnswer
()
76
{
77
$this->table =
"questionnaire_answer"
;
78
$this->primary_key =
"answer_id"
;
79
80
$this->DataItem(func_get_args());
81
}
82
}
83
84
85
?>
AbstractQuestionnaireAnswer
Definition:
questionnaire_answer.inc:40
AbstractQuestionnaireAnswer\Response
Response()
AbstractQuestionnaireAnswer\Question
Question()
AbstractQuestionnaireAnswer\AbstractQuestionnaireAnswer
AbstractQuestionnaireAnswer()
Definition:
questionnaire_answer.inc:42
Question
Definition:
question.inc:137
QuestionnaireAnswer
Definition:
questionnaire_answer.inc:53
QuestionnaireAnswer\Response
Response()
Definition:
questionnaire_answer.inc:70
QuestionnaireAnswer\$fields
$fields
Definition:
questionnaire_answer.inc:54
QuestionnaireAnswer\Question
Question()
Definition:
questionnaire_answer.inc:65
QuestionnaireAnswer\QuestionnaireAnswer
QuestionnaireAnswer()
Definition:
questionnaire_answer.inc:75
QuestionnaireAnswer\$relations
$relations
Definition:
questionnaire_answer.inc:61
QuestionnaireResponse
Definition:
questionnaire_response.inc:69
code
cms.sonjara.com
cms
components
questionnaire
datamodel
questionnaire_answer.inc
Generated on Tue Mar 23 2021 15:36:13 for CMS by
1.9.1