1 | <?php |
||
8 | class FaqHolderPage extends Page |
||
|
|||
9 | { |
||
10 | private static $icon = "mysite/images/treeicons/FaqHolderPage"; |
||
11 | |||
12 | private static $description = "A list of Frequently Asked Questions" ; |
||
13 | |||
14 | //private static $default_parent = ''; |
||
15 | |||
16 | private static $default_child = 'FaqOnePage'; |
||
17 | |||
18 | private static $allowed_children = array('FaqHolderPage', 'FaqOnePage'); |
||
19 | |||
20 | /** |
||
21 | * Standard SS variable. |
||
22 | */ |
||
23 | private static $singular_name = "FAQ Holder Page"; |
||
24 | public function i18n_singular_name() |
||
28 | |||
29 | /** |
||
30 | * Standard SS variable. |
||
31 | */ |
||
32 | private static $plural_name = "FAQ Holder Pages"; |
||
33 | public function i18n_plural_name() |
||
37 | |||
38 | /** |
||
39 | * The holder page class in use. |
||
40 | * You can extends this Class and change this value. |
||
41 | * @var String |
||
42 | */ |
||
43 | protected $holderPage = "FAQHolderPage"; |
||
44 | |||
45 | /** |
||
46 | * The item page class in use. |
||
47 | * You can extends this Class and change this value. |
||
48 | * @var String |
||
49 | */ |
||
50 | protected $entryPage = "FAQOnePage"; |
||
51 | |||
52 | /** |
||
53 | * Returns children FAQHolderPage pages of this FAQHolderPage. |
||
54 | * |
||
55 | * @param Int $maxRecursiveLevel - maximum depth , e.g. 1 = one level down - so no Child Groups are returned... |
||
56 | * @param Int $numberOfRecursions - current level of depth. DONT provide this variable... |
||
57 | * @return ArrayList (FAQHolderPages) |
||
58 | */ |
||
59 | public function ChildGroups($maxRecursiveLevel = 99, $numberOfRecursions = 0) |
||
75 | |||
76 | /** |
||
77 | * sets the classname for pages that are holder pages |
||
78 | * @param String $name |
||
79 | */ |
||
80 | public function setHolderPage($name) |
||
84 | |||
85 | /** |
||
86 | * gets the classname for pages that are holder pages |
||
87 | * @return String |
||
88 | */ |
||
89 | public function getHolderPage() |
||
93 | |||
94 | /** |
||
95 | * sets the classname for pages that are individual items |
||
96 | * @param String $name |
||
97 | */ |
||
98 | public function setEntryName($name) |
||
102 | |||
103 | /** |
||
104 | * gets the classname for pages that are individual items |
||
105 | * @return String |
||
106 | */ |
||
107 | public function getEntryName() |
||
111 | } |
||
112 | |||
165 |
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.