MemberExtension.php

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

  function extraStatics() {
      return array(
        'db' => array(
          "Address" => "Text",
          "Suburb" => "Varchar",
          "City" => "Varchar",
          "Region" => "Varchar",
          "HomePhone" => "Int",
          "WorkPhone" => "Int",
          "MobilePhone" => "Int",
          "Fax" => "Int",
          "URL" => "Varchar",
          "lat" => "Varchar",  
          "lng" => "Varchar"
        ),
      );
  }

}
?>

from mysite/_config.php

1
2
3

Object::add_extension('Member', 'MemberExtension');