1 | <?php |
||
24 | class ForumCategory extends DataObject |
||
25 | { |
||
26 | /** @var array */ |
||
27 | private static $db = array( |
||
28 | 'Title' => 'Varchar(100)', |
||
29 | 'StackableOrder' => 'Varchar(2)' |
||
30 | ); |
||
31 | |||
32 | /** @var array */ |
||
33 | private static $has_one = array( |
||
34 | 'ForumHolder' => 'ForumHolder' |
||
35 | ); |
||
36 | |||
37 | /** @var array */ |
||
38 | private static $has_many = array( |
||
39 | 'Forums' => 'Forum' |
||
40 | ); |
||
41 | |||
42 | /** @var string */ |
||
43 | private static $default_sort = 'StackableOrder DESC'; |
||
44 | |||
45 | /** |
||
46 | * Get the fields for the category edit/ add |
||
47 | * in the complex table field popup window. |
||
48 | * |
||
49 | * @return FieldList |
||
50 | */ |
||
51 | public function getCMSFieldsForPopup() |
||
65 | } |
||
66 |