Last change
on this file since 127 was
127,
checked in by fpvanagthoven, 14 years ago
|
Login works good. Mainmenu looks visually the same now.
|
File size:
487 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /* |
---|
4 | * To change this template, choose Tools | Templates |
---|
5 | * and open the template in the editor. |
---|
6 | */ |
---|
7 | |
---|
8 | /** |
---|
9 | * Description of question |
---|
10 | * |
---|
11 | * @author fpvanagthoven |
---|
12 | */ |
---|
13 | class Question extends AppModel { |
---|
14 | var $name = 'Question'; |
---|
15 | |
---|
16 | var $code; |
---|
17 | var $category; |
---|
18 | var $title; |
---|
19 | var $description; |
---|
20 | var $type; |
---|
21 | |
---|
22 | var $hasMany = array( |
---|
23 | 'Answer' => array( |
---|
24 | 'className' => 'Answer', |
---|
25 | 'foreignKey' => 'question_code' |
---|
26 | ) |
---|
27 | ); |
---|
28 | } |
---|
29 | |
---|
30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.