2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
2016-06-23 01:37:22 +02:00
|
|
|
|
|
|
|
namespace SilverStripe\Security;
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
/**
|
|
|
|
* Used to let classes provide new permission codes.
|
2012-09-26 23:34:00 +02:00
|
|
|
* Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of
|
|
|
|
* permission codes.
|
2012-04-12 08:02:46 +02:00
|
|
|
* @package framework
|
2008-02-25 03:10:37 +01:00
|
|
|
* @subpackage security
|
2007-07-19 12:40:28 +02:00
|
|
|
*/
|
|
|
|
interface PermissionProvider {
|
|
|
|
/**
|
|
|
|
* Return a map of permission codes to add to the dropdown shown in the Security section of the CMS.
|
|
|
|
* array(
|
|
|
|
* 'VIEW_SITE' => 'View the site',
|
|
|
|
* );
|
|
|
|
*/
|
2012-09-19 12:07:39 +02:00
|
|
|
public function providePermissions();
|
2007-07-19 12:40:28 +02:00
|
|
|
}
|
|
|
|
|