Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

david_b

By: a guest on May 5th, 2011  |  syntax: None  |  size: 0.50 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. class NewsletterGroup extends DataObject {
  3.         static $singular_name = 'NewsletterGruppe';
  4.         static $plural_name = 'NewsletterGruppen';
  5.  
  6.         static $db = array(
  7.                 'Title' => 'Varchar(255)',
  8.         );
  9.         static $belongs_many_many = array(
  10.                 'NewsletterContacts' => 'NewsletterContact',
  11.         );
  12.        
  13.         static $field_labels = array(
  14.                 'Title' => 'Titel',
  15.         );
  16.        
  17.    function getCMSFields_forPopup() {
  18.       $fields = new FieldSet();
  19.       $fields->push( new TextField( 'Title' ) );
  20.       return $fields;
  21.    }
  22. }
  23. ?>