silverstripe-cms/code/controllers/CMSPageSettingsController.php
2012-09-20 10:41:50 +02:00

21 lines
520 B
PHP

<?php
/**
* @package cms
*/
class CMSPageSettingsController extends CMSMain {
static $url_segment = 'pages/settings';
static $url_rule = '/$Action/$ID/$OtherID';
static $url_priority = 42;
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
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);
}
}