mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
24 lines
483 B
PHP
24 lines
483 B
PHP
<?php
|
|
|
|
class LegacyTableFieldsTestPage extends TestPage {
|
|
|
|
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 {
|
|
|
|
}
|