<?php

class ContactCities extends DataObject {

    public static $db = array(
        'Title' => 'Text',
        'Email' => 'Varchar(255)',
        'Active' => 'Boolean'
    );
    public static $has_one = array(
        'ContactPageEmployee' => 'ContactPageEmployee'
    );
    
    //Set our defaults
    public static $defaults = array(   
        'Title' => 'New City',
        'Active' => true
    );


    public function getCMSFields_forPopup() {
        
        return new FieldSet(
                        new TextField('Title', 'City'),
                        new TextField('Email', 'Email'),
                        new CheckboxField('Active', 'Active?', true)
                        
        );
    }


}

?>
