@@ 3-21 (lines=19) @@ | ||
1 | <?php |
|
2 | ||
3 | class ContactCategory extends TitleDataObject |
|
4 | { |
|
5 | private static $belongs_many_many = array( |
|
6 | 'Contacts' => 'Contact' |
|
7 | ); |
|
8 | ||
9 | private static $field_labels = array( |
|
10 | 'Title' => 'Category' |
|
11 | ); |
|
12 | ||
13 | private static $summary_fields = array( |
|
14 | 'Title' => 'Category' |
|
15 | ); |
|
16 | ||
17 | ||
18 | private static $singular_name = 'Contact Category'; |
|
19 | ||
20 | private static $plural_name = 'Contact Categories'; |
|
21 | } |
|
22 |
@@ 3-28 (lines=26) @@ | ||
1 | <?php |
|
2 | ||
3 | class ContactLocation extends TitleDataObject |
|
4 | { |
|
5 | private static $has_many = array( |
|
6 | 'Contacts' => 'Contact' |
|
7 | ); |
|
8 | ||
9 | private static $field_labels = array( |
|
10 | 'Title' => 'Location' |
|
11 | ); |
|
12 | ||
13 | private static $summary_fields = array( |
|
14 | 'Title' => 'Location' |
|
15 | ); |
|
16 | ||
17 | ||
18 | /** |
|
19 | * @inherited |
|
20 | */ |
|
21 | private static $default_sort = array( |
|
22 | 'Title' => "ASC" |
|
23 | ); |
|
24 | ||
25 | private static $singular_name = 'Location'; |
|
26 | ||
27 | private static $plural_name = 'Locations'; |
|
28 | } |
|
29 |