1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class MP3BlogEntry extends DataObjectDecorator {
	function extraDBFields() {
		return array(
			'has_one' => array(
				'MP3File' => 'File',
			),
		);
	}

	public function updateCMSFields(FieldSet &$fields) {
		$fields->addFieldToTab("Root.Content.Main, new FileIFrameField('MP3File'));
	}
}