| 1 | <?php |
||
| 10 | class CampaignMonitorSegment extends DataObject |
||
|
|
|||
| 11 | { |
||
| 12 | private static $db = array( |
||
| 13 | "Title" => "Varchar(64)", |
||
| 14 | "SegmentID" => "Varchar(32)", |
||
| 15 | "ListID" => "Varchar(32)" |
||
| 16 | ); |
||
| 17 | |||
| 18 | private static $summary_fields = array( |
||
| 19 | "Title" => "Title" |
||
| 20 | ); |
||
| 21 | |||
| 22 | private static $indexes = array( |
||
| 23 | "SegmentID" => true, |
||
| 24 | "ListID" => true |
||
| 25 | ); |
||
| 26 | |||
| 27 | private static $has_one = array( |
||
| 28 | "CampaignMonitorSignupPage" => "CampaignMonitorSignupPage" |
||
| 29 | ); |
||
| 30 | |||
| 31 | |||
| 32 | public function canCreate($member = null) |
||
| 36 | |||
| 37 | public function canDelete($member = null) |
||
| 41 | |||
| 42 | public function canEdit($member = null) |
||
| 46 | } |
||
| 47 |
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.