silverstripe-frameworktest/code/model/FrameworkTestRole.php
2008-11-13 21:32:37 +00:00

18 lines
314 B
PHP

<?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"));
}
}
?>