mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-01 23:37:56 +02:00
18 lines
470 B
PHP
18 lines
470 B
PHP
<?php
|
|
|
|
/**
|
|
* @package cms
|
|
*/
|
|
class CMSPageSettingsController extends CMSMain {
|
|
|
|
static $url_segment = 'page/settings';
|
|
static $url_rule = '/$Action/$ID/$OtherID';
|
|
static $url_priority = 42;
|
|
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
|
|
|
function getEditForm($id = null, $fields = null) {
|
|
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
|
|
|
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
|
}
|
|
} |