1 | <?php |
||
13 | class ForumCategory extends DataObject |
||
14 | { |
||
15 | |||
16 | private static $db = array( |
||
|
|||
17 | 'Title' => 'Varchar(100)', |
||
18 | 'StackableOrder' => 'Varchar(2)' |
||
19 | ); |
||
20 | |||
21 | private static $has_one = array( |
||
22 | 'ForumHolder' => 'ForumHolder' |
||
23 | ); |
||
24 | |||
25 | private static $has_many = array( |
||
26 | 'Forums' => 'Forum' |
||
27 | ); |
||
28 | |||
29 | private static $default_sort = "\"StackableOrder\" DESC"; |
||
30 | |||
31 | /** |
||
32 | * Get the fields for the category edit/ add |
||
33 | * in the complex table field popup window. |
||
34 | * |
||
35 | * @return FieldList |
||
36 | */ |
||
37 | public function getCMSFields_forPopup() |
||
51 | } |
||
52 |