summaryrefslogtreecommitdiff
path: root/framework/Web/Security/TSqlRoleProvider.php
diff options
context:
space:
mode:
authorjrags <>2006-09-19 03:04:28 +0000
committerjrags <>2006-09-19 03:04:28 +0000
commit2c8fcb129c45faecd1a480c44f8a1708f768b91d (patch)
tree43c0ad8bb4c8f669ef242f278de9ffa12d20b93c /framework/Web/Security/TSqlRoleProvider.php
parentb767e82ec7bb04e747961e7ecee0e288fde719f0 (diff)
Inital Checkin of new membership and role providers. Currently still in development
Diffstat (limited to 'framework/Web/Security/TSqlRoleProvider.php')
-rw-r--r--framework/Web/Security/TSqlRoleProvider.php41
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