1 <?php
2 /**
3 * Used to let classes provide new permission codes.
4 * Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of permission codes.
5 * @package sapphire
6 * @subpackage security
7 */
8 interface PermissionProvider {
9 /**
10 * Return a map of permission codes to add to the dropdown shown in the Security section of the CMS.
11 * array(
12 * 'VIEW_SITE' => 'View the site',
13 * );
14 */
15 function providePermissions();
16 }
17
18 ?>