| 1 | <?php  | 
            ||
| 3 | class DMSDocumentCartAdmin extends ModelAdmin  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 4 | { | 
            ||
| 5 | private static $managed_models = array(  | 
            ||
| 6 | 'DMSDocumentCartSubmission'  | 
            ||
| 7 | );  | 
            ||
| 8 | |||
| 9 | private static $url_segment = 'cart';  | 
            ||
| 10 | private static $menu_title = 'Document Cart';  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * Remove ability to add new items in these grid fields  | 
            ||
| 14 | *  | 
            ||
| 15 | * @return CMSForm  | 
            ||
| 16 | */  | 
            ||
| 17 | public function getEditForm($id = null, $fields = null)  | 
            ||
| 30 | }  | 
            ||
| 31 | 
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.