summaryrefslogtreecommitdiff
path: root/framework/Web/Security/TRoleProvider.php
blob: d705be7e5a39d6355545484554412adb0b99938f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
 * TRoleProvider class.
 * Defines the contract that PRADO implements to provide role-management services using custom role providers. 
 *
 * @author Jason Ragsdale <jrags@jasrags.net>
 * @version $Id: TRoleProvider.php 1398 2006-09-08 19:31:03Z xue $
 * @package System.Web.Security
 * @since 3.1
 */
Prado::using('System.Configuration.Provider.TProviderBase');
abstract class TRoleProvider extends TProviderBase 
{
	private abstract $_ApplicationName;
	protected function __construct()
	{
		
	}
	public abstract function getApplicationName();
	public abstract function setApplicationName($value);
	public abstract function AddUsersToRoles($usernames,$roleNames);
	public abstract function CreateRole($roleName);
	public abstract function DeleteRole($roleName);
	public abstract function FineUsersInRole($roleName,$usernameToMatch);
	public abstract function GetAllRoles();
	public abstract function GetRolesForUser($username);
	public abstract function GetUsersIsRole($username,$roleName);
	public abstract function IsUserIsRole($username,$roleName);
	public abstract function RemoveUsersFromRoles($usernames,$roleNames);
	public abstract function RoleExists($roleName);
}
?>