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 {
|
|
|
|
|
2012-04-16 15:55:19 +02:00
|
|
|
static $url_segment = 'pages/settings';
|
2011-04-16 07:54:52 +02:00
|
|
|
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';
|
2012-08-28 00:28:58 +02:00
|
|
|
static $session_namespace = 'CMSMain';
|
2011-04-16 07:54:52 +02:00
|
|
|
|
2012-09-19 12:07:46 +02:00
|
|
|
public function getEditForm($id = null, $fields = null) {
|
2011-04-16 07:54:52 +02:00
|
|
|
$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);
|
|
|
|
}
|
2012-03-12 11:52:39 +01:00
|
|
|
|
2012-04-12 09:23:20 +02:00
|
|
|
}
|