1 | <?php |
||
8 | class DMSDocumentCartCheckoutPage extends Page |
||
|
|||
9 | { |
||
10 | private static $db = array( |
||
11 | 'ThanksMessage' => 'Text', |
||
12 | ); |
||
13 | |||
14 | private static $has_one = array( |
||
15 | 'CartEmailRecipient' => 'Member' |
||
16 | ); |
||
17 | |||
18 | private static $defaults = array( |
||
19 | 'URLSegment' => 'checkout', |
||
20 | 'ShowInMenus' => false, |
||
21 | ); |
||
22 | |||
23 | public function getCMSFields() |
||
46 | /** |
||
47 | * Automatically create a CheckoutPage if one is not found |
||
48 | * on the site at the time the database is built (dev/build). |
||
49 | */ |
||
50 | public function requireDefaultRecords() |
||
75 | } |
||
76 |
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.