| 1 | <?php |
||
| 11 | class SiteMapPage extends Page |
||
|
|
|||
| 12 | { |
||
| 13 | private static $db = array( |
||
| 14 | "ShowAllPages" => "Boolean" |
||
| 15 | ); |
||
| 16 | |||
| 17 | private static $description = "Sitemap Page: shows all the pages of a site in a tree format"; |
||
| 18 | |||
| 19 | private static $add_action = 'Site Map Page'; |
||
| 20 | |||
| 21 | private static $icon = 'sitemappage/images/treeicons/SiteMapPage'; |
||
| 22 | |||
| 23 | public function canCreate($member = null) |
||
| 27 | |||
| 28 | public function getCMSFields() |
||
| 34 | } |
||
| 35 | |||
| 56 |
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.