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.
|
2007-07-19 12:40:28 +02:00
|
|
|
*/
|
2016-11-29 00:31:16 +01:00
|
|
|
interface PermissionProvider
|
|
|
|
{
|
2016-08-19 00:51:35 +02:00
|
|
|
|
2016-11-29 00:31:16 +01:00
|
|
|
/**
|
|
|
|
* 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',
|
|
|
|
* );
|
|
|
|
*/
|
|
|
|
public function providePermissions();
|
2007-07-19 12:40:28 +02:00
|
|
|
}
|