1 | <?php |
||
4 | class ContactListPage extends Page |
||
|
|||
5 | { |
||
6 | private static $icon = 'contact_list/images/treeicons/ContactListPage'; |
||
7 | |||
8 | /** |
||
9 | * @var String Description of the class functionality, typically shown to a user |
||
10 | * when selecting which page type to create. Translated through {@link provideI18nEntities()}. |
||
11 | */ |
||
12 | private static $description = "Shows a list of contacts"; |
||
13 | |||
14 | /** |
||
15 | * standard SS variable |
||
16 | * @Var String |
||
17 | */ |
||
18 | private static $singular_name = 'Contact List Page'; |
||
19 | |||
20 | public function i18n_singular_name() |
||
24 | |||
25 | /** |
||
26 | * standard SS variable |
||
27 | * @Var String |
||
28 | */ |
||
29 | private static $plural_name = 'Contact List Pages'; |
||
30 | |||
31 | public function i18n_plural_name() |
||
35 | |||
36 | public function canCreate($member = null) |
||
43 | |||
44 | private static $contacts_list_cache_key = null; |
||
45 | |||
46 | public function ContactsListCacheKey() |
||
53 | |||
54 | /** |
||
55 | * CMS Fields |
||
56 | * @return FieldList |
||
57 | */ |
||
58 | public function getCMSFields() |
||
72 | } |
||
73 | |||
93 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.