1 <?php
2 /**
3 * guestbookAdmin
4 *
5 * @author Marc Aschmann <marc (at) aschmann.org>
6 * @package guestbook
7 */
8
9 /**
10 * guestbookAdmin class
11 *
12 * @author Marc Aschmann <marc (at) aschmann.org>
13 *
14 */
15 class GuestbookAdmin extends ModelAdmin
16 {
17 public static $collection_controller_class = "GuestbookAdmin_CollectionController";
18
19 /**
20 * managed models
21 * @var static array
22 */
23 public static $managed_models = array(
24 'GuestbookEntry',
25 );
26
27 /**
28 * url segment var
29 * @var static string
30 */
31 static $url_segment = 'guestbook';
32
33 }
34 class GuestbookAdmin_CollectionController extends ModelAdmin_CollectionController {
35 public function CreateForm() {
36 return false;
37 }
38
39 /*public function SearchForm() {
40 $context = singleton($this->modelClass)->getDefaultSearchContext();
41 $fields = $context->getSearchFields();
42 }
43 */
44 }
45