1 | <?php |
||
7 | class IPBanEntry extends DataObject |
||
|
|||
8 | { |
||
9 | private static $db = array( |
||
10 | 'Event' => 'Varchar(255)', |
||
11 | 'IP' => 'Varchar(255)' |
||
12 | ); |
||
13 | |||
14 | private static $default_sort = 'Created'; |
||
15 | |||
16 | private static $summary_fields = array( |
||
17 | 'Created', |
||
18 | 'IP', |
||
19 | 'Event' |
||
20 | ); |
||
21 | |||
22 | public function Title() |
||
26 | } |
||
27 |
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.