From 2c8fcb129c45faecd1a480c44f8a1708f768b91d Mon Sep 17 00:00:00 2001 From: jrags <> Date: Tue, 19 Sep 2006 03:04:28 +0000 Subject: Inital Checkin of new membership and role providers. Currently still in development --- framework/Web/Security/TRoleProvider.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 framework/Web/Security/TRoleProvider.php (limited to 'framework/Web/Security/TRoleProvider.php') diff --git a/framework/Web/Security/TRoleProvider.php b/framework/Web/Security/TRoleProvider.php new file mode 100644 index 00000000..d705be7e --- /dev/null +++ b/framework/Web/Security/TRoleProvider.php @@ -0,0 +1,32 @@ + + * @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); +} +?> \ No newline at end of file -- cgit v1.2.3