summaryrefslogtreecommitdiff
path: root/framework/Web/Security/TSqlRoleProvider.php
blob: 24f5e38dc7ea837471a5c0207820e9db16cea327 (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
33
34
35
36
37
38
39
40
41
<?php
/**
 * TSqlRoleProvider class.
 * Defines the contract that PRADO implements to provide role-management services using custom role providers. 
 *
 * @author Jason Ragsdale <jrags@jasrags.net>
 * @version $Id: TSqlRoleProvider.php 1398 2006-09-08 19:31:03Z xue $
 * @package System.Web.Security
 * @since 3.1
 */
Prado::using('System.Web.Security.TRoleProvider');
class TSqlRoleProvider extends TRoleProvider 
{
	private $_ApplicationName;
	protected function __construct()
	{
		
	}
	public function getApplicationName()
	{
		return $this->_ApplicationName;
	}
	public function setApplicationName($value)
	{
		$this->_ApplicationName = TPropertyValue::ensureString($value);
	}
	public function AddUsersToRoles($usernames,$roleNames)
	{
		
	}
	public function CreateRole($roleName);
	public function DeleteRole($roleName);
	public function FineUsersInRole($roleName,$usernameToMatch);
	public function GetAllRoles();
	public function GetRolesForUser($username);
	public function GetUsersIsRole($username,$roleName);
	public function IsUserIsRole($username,$roleName);
	public function RemoveUsersFromRoles($usernames,$roleNames);
	public function RoleExists($roleName);
}
?>