silverstripe-reports/code/controllers/CMSPagesController.php

30 lines
580 B
PHP
Raw Normal View History

2011-04-20 22:50:13 +02:00
<?php
/**
* @package cms
*/
2011-04-20 22:50:13 +02:00
class CMSPagesController extends CMSMain {
static $url_segment = 'pages';
static $url_rule = '/$Action/$ID/$OtherID';
static $url_priority = 40;
2011-04-20 22:50:13 +02:00
static $menu_title = 'Pages';
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
function PreviewLink() {
return false;
}
/**
* Doesn't deal with a single record, and we need
* to avoid session state from previous record edits leaking in here.
*/
public function currentPageID() {
return false;
}
public function isCurrentPage(DataObject $record) {
return false;
}
}