1 | <?php |
||
3 | class BrowseAbstractPage extends Page |
||
|
|||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Standard SS static |
||
8 | **/ |
||
9 | public static $db = array( |
||
10 | "CreateChildren" => "Boolean", |
||
11 | "CreateAllChildren" => "Boolean", |
||
12 | "HiddenDataID" => "Int", |
||
13 | "AlternativeURL" => "Varchar", |
||
14 | "ExtraNote" => "Varchar(255)" |
||
15 | ); |
||
16 | |||
17 | /** |
||
18 | * Standard SS static |
||
19 | **/ |
||
20 | public static $breadcrumbs_delimiter = " » "; |
||
21 | |||
22 | /** |
||
23 | * Standard SS method: can only create if the parent exists... |
||
24 | **/ |
||
25 | public function canCreate($member = null) |
||
34 | |||
35 | /** |
||
36 | * Name of the level |
||
37 | **/ |
||
38 | public function GeoLevelName() |
||
42 | |||
43 | /** |
||
44 | * Number of the level |
||
45 | **/ |
||
46 | public function GeoLevelNumber() |
||
50 | |||
51 | |||
52 | /** |
||
53 | * works out if the child page needs to be created |
||
54 | **/ |
||
55 | public function allowBrowseChildren() |
||
63 | |||
64 | /** |
||
65 | * retrieves data from a DB table that is not part of the DataObject Model. |
||
66 | **/ |
||
67 | protected function getDataFromTable($tableName, $where = null, $orderby = null) |
||
81 | |||
82 | /** |
||
83 | * standard SS method |
||
84 | **/ |
||
85 | public function getCMSFields() |
||
101 | |||
102 | /** |
||
103 | * standard SS method |
||
104 | **/ |
||
105 | public function onBeforeWrite() |
||
112 | } |
||
113 | |||
117 |
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.