Given a simple DataObject
like this:
class MyDataObject extends DataObject {
private static $db = array(
'Name' => 'Varchar(255)'
);
}
To provide full Create-Read-Update-Delete for the objects then this is the ModelAdmin
code required:
class MyModelAdmin extends ModelAdmin {
private static $mangaged_models = array(
'MyDataObject'
);
private static $url_segment = 'my-model-admin';
private static $menu_title = 'My Model Admin';
private static $menu_icon = 'mysite/images/treeicons/my-model-admin.png';
private static $menu_priority = 9;
}