1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
class ClientObject extends DataObject {

  public static $db = array(
    'Name' => 'Text',
  );

  public static $has_one = array(
    'Logo' => 'Image',
    'Person' => 'Text',
    'ReferencesPage' => 'ReferencesPage',
    'HomePage' => 'HomePage'
  );

  public function getCMSFields_forPopup() {
    
    return new FieldSet(
    new TextField('Name', 'Firmenname'),
    new TextField('Person', 'Ansprechpartner'),
    new ImageField('Logo', 'Logo')
    );
    
    }
  
}

?>