2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
|
|
|
|
2008-02-25 03:10:37 +01:00
|
|
|
/**
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage security
|
|
|
|
*/
|
|
|
|
|
2007-07-19 12:40:28 +02:00
|
|
|
/**
|
|
|
|
* Used to let classes provide new permission codes.
|
|
|
|
* Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of permission codes.
|
2008-02-25 03:10:37 +01:00
|
|
|
* @package sapphire
|
|
|
|
* @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',
|
|
|
|
* );
|
|
|
|
*/
|
|
|
|
function providePermissions();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|