1 | <?php |
||
3 | class BrowseCountriesPage extends BrowseAbstractPage |
||
|
|||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Standard SS static |
||
8 | **/ |
||
9 | public static $icon = "geobrowser/images/treeicons/BrowseCountriesPage"; |
||
10 | |||
11 | /** |
||
12 | * Standard SS static |
||
13 | **/ |
||
14 | public static $allowed_children = array("BrowseRegionsPage"); |
||
15 | |||
16 | /** |
||
17 | * Standard SS static |
||
18 | **/ |
||
19 | public static $default_child = "BrowseRegionsPage"; |
||
20 | |||
21 | /** |
||
22 | * Standard SS static |
||
23 | **/ |
||
24 | public static $default_parent = "BrowseContinentsPage"; |
||
25 | |||
26 | /** |
||
27 | * Standard SS static |
||
28 | **/ |
||
29 | public static $can_be_root = false; |
||
30 | |||
31 | /** |
||
32 | * Standard SS static |
||
33 | **/ |
||
34 | public static $db = array( |
||
35 | "Country" => "Varchar(50)" , |
||
36 | "ISO2" => "Varchar(2)" , |
||
37 | "Internet" => "Varchar(2)" , |
||
38 | "Capital" => "Varchar(25)" , |
||
39 | "NationalitySingular" => "Varchar(35)" , |
||
40 | "NationalityPlural" => "Varchar(35)" , |
||
41 | "Currency" => "Varchar(30)" , |
||
42 | "CurrencyCode" => "Varchar(3)" , |
||
43 | "Population" => "Int" , |
||
44 | "AdditionalTitle" => "Varchar(50)" |
||
45 | ); |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Standard SS Static |
||
50 | **/ |
||
51 | public static $defaults = array( |
||
52 | "ShowInMenus" => false |
||
53 | ); |
||
54 | |||
55 | /** |
||
56 | * Standard SS Method |
||
57 | **/ |
||
58 | public function getCMSFields() |
||
63 | |||
64 | public function GeoLevelName() |
||
68 | |||
69 | public function GeoLevelNumber() |
||
73 | |||
74 | /** |
||
75 | * Standard SS Method |
||
76 | * Setup records |
||
77 | * |
||
78 | **/ |
||
79 | public function requireDefaultRecords() |
||
105 | |||
106 | /** |
||
107 | * Create a country based on an array and a Continent Parent |
||
108 | **/ |
||
109 | public function CreateCountry(array $country, BrowseContinentsPage $parent) |
||
149 | } |
||
150 | |||
154 |
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.