2011-04-16 07:54:52 +02:00
|
|
|
<?php
|
2011-08-19 02:32:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @package cms
|
|
|
|
*/
|
2011-04-16 07:54:52 +02:00
|
|
|
class CMSPageSettingsController extends CMSMain {
|
|
|
|
|
|
|
|
static $url_segment = 'page/settings';
|
|
|
|
static $url_rule = '/$Action/$ID/$OtherID';
|
|
|
|
static $url_priority = 42;
|
2012-03-05 16:07:53 +01:00
|
|
|
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
|
2011-04-16 07:54:52 +02:00
|
|
|
|
|
|
|
function getEditForm($id = null, $fields = null) {
|
|
|
|
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
2011-08-19 02:32:31 +02:00
|
|
|
|
2011-04-16 07:54:52 +02:00
|
|
|
return parent::getEditForm($record, ($record) ? $record->getSettingsFields() : null);
|
|
|
|
}
|
|
|
|
}
|