2017-07-11 05:16:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use SilverStripe\CMS\Controllers\ContentController;
|
|
|
|
|
|
|
|
class PageController extends ContentController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* An array of actions that can be accessed via a request. Each array element should be an action name, and the
|
|
|
|
* permissions or conditions required to allow the user to access it.
|
|
|
|
*
|
|
|
|
* <code>
|
2017-11-06 01:46:05 +01:00
|
|
|
* [
|
2017-07-11 05:16:08 +02:00
|
|
|
* 'action', // anyone can access this action
|
|
|
|
* 'action' => true, // same as above
|
|
|
|
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action
|
|
|
|
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true
|
2017-11-06 01:46:05 +01:00
|
|
|
* ];
|
2017-07-11 05:16:08 +02:00
|
|
|
* </code>
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2017-11-06 01:46:05 +01:00
|
|
|
private static $allowed_actions = [];
|
2017-07-11 05:16:08 +02:00
|
|
|
|
|
|
|
protected function init()
|
|
|
|
{
|
|
|
|
parent::init();
|
|
|
|
// You can include any CSS or JS required by your project here.
|
|
|
|
// See: https://docs.silverstripe.org/en/developer_guides/templates/requirements/
|
|
|
|
}
|
|
|
|
}
|