silverstripe-frameworktest/code/LegacyTableFieldsTestPage.php

23 lines
450 B
PHP
Raw Normal View History

<?php
class LegacyTableFieldsTestPage extends TestPage {
function getCMSFields() {
$fields = parent::getCMSFields();
$tf = new TableListField('CompaniesTF', 'Company');
$tf->setShowPagination(true);
$ctf = new ComplexTableField($this, 'CompaniesCTF', 'Company');
$fields->addFieldsToTab('Root.Fields', array(
$tf,
$ctf
));
return $fields;
}
}
class LegacyTableFieldsTestPage_Controller extends TestPage_Controller {
}