silverstripe-frameworktest/code/LegacyTableFieldsTestPage.php

24 lines
483 B
PHP
Raw Normal View History

<?php
class LegacyTableFieldsTestPage extends TestPage {
2012-04-12 05:04:39 +02:00
function getCMSFields($class = null, $extension = null) {
$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 {
2012-04-12 05:04:39 +02:00
}