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
28
29
30
<?php
class CourseDateTime extends CalendarDateTime {
  static $db = array (
    'City' => 'Varchar(50)',
    'Location' => 'Varchar(50)',
  );

  static $has_one = array (
    'Course' => 'Course'
  );

  public function extendTable() {
    $this->addTableTitles(array(
      'City' => 'City',
      'Location' => 'Location'
    ));
    $this->addTableFields(array(
      'City' => 'TextField',
      'Location' => 'TextField'
    ));

    $this->addPopupFields(array(
      new TextField('City'),
      new TextField('Location')      
      //new CheckboxSetField('Instructors','Instructors', $map)
    ));

  }
}
?>