diff options
Diffstat (limited to 'framework/Web/Security/TSqlRoleProvider.php')
-rw-r--r-- | framework/Web/Security/TSqlRoleProvider.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/framework/Web/Security/TSqlRoleProvider.php b/framework/Web/Security/TSqlRoleProvider.php new file mode 100644 index 00000000..24f5e38d --- /dev/null +++ b/framework/Web/Security/TSqlRoleProvider.php @@ -0,0 +1,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); +} +?>
\ No newline at end of file |