silverstripe-frameworktest/code/model/FrameworkTestRole.php

18 lines
314 B
PHP
Raw Normal View History

2008-11-13 22:32:37 +01:00
<?php
class FrameworkTestRole extends DataObjectDecorator {
function extraStatics() {
return array(
'has_one' => array(
'FavouritePage' => 'SiteTree',
),
);
}
function updateCMSFields($fields) {
$fields->push(new TreeDropdownField("FavouritePageID", "Favourite page", "SiteTree"));
}
}
?>