mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-06 09:41:12 +02:00
See "Static configuration properties are now immutable, you must use Config API." in the 3.1 change log for details.
27 lines
734 B
PHP
27 lines
734 B
PHP
<?php
|
|
|
|
/**
|
|
* @package cms
|
|
*/
|
|
class CMSPageSettingsController extends CMSMain {
|
|
|
|
private static $url_segment = 'pages/settings';
|
|
private static $url_rule = '/$Action/$ID/$OtherID';
|
|
private static $url_priority = 42;
|
|
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
|
private static $session_namespace = 'CMSMain';
|
|
|
|
public function getEditForm($id = null, $fields = null) {
|
|
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
|
|
|
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
|
}
|
|
|
|
public function Breadcrumbs($unlinked = false) {
|
|
$crumbs = parent::Breadcrumbs($unlinked);
|
|
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|