summaryrefslogtreecommitdiff
path: root/framework/Security/TMembershipManager.php
diff options
context:
space:
mode:
authorjrags <>2006-11-01 04:47:01 +0000
committerjrags <>2006-11-01 04:47:01 +0000
commit6d28e3f62535bb637b08287585bf9c13dfd756d2 (patch)
treeea8e6ba21ff3f5fcf7c16933d7c9a8ed224a2412 /framework/Security/TMembershipManager.php
parentb4403995107c4440b4e19dd5e5e8385e0eac2a5a (diff)
Update of new Security code, currently working on making TLogin functional so we can test the providers soon.
Diffstat (limited to 'framework/Security/TMembershipManager.php')
-rw-r--r--framework/Security/TMembershipManager.php111
1 files changed, 0 insertions, 111 deletions
diff --git a/framework/Security/TMembershipManager.php b/framework/Security/TMembershipManager.php
deleted file mode 100644
index b5986ac5..00000000
--- a/framework/Security/TMembershipManager.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-
-Prado::using('System.Security.TUser');
-
-interface IMembershipUser
-{
- public function getEmail();
- public function setEmail($value);
- public function getCreationDate();
- public function setCreationDate($value);
- public function getIsApproved();
- public function setIsApproved($value);
- public function getIsLockedOut();
- public function setIsLockedOut($value);
- public function getIsOnline();
- public function setIsOnline($value);
- public function getLastLoginDate();
- public function setLastLoginDate($value);
- public function getLastActivityDate();
- public function setLastActivityDate($value);
- public function getLastLockoutDate();
- public function setLastLockoutDate($value);
- public function getLastPasswordChangedDate();
- public function setLastPasswordChangedDate($value);
- public function getPasswordQuestion();
- public function setPasswordQuestion($value);
- public function getComment();
- public function setComment($value);
-
- public function update();
- public function fetchPassword($passwordAnswer=null);
- public function changePassword($username,$oldPassword,$newPassword);
- public function changePasswordQuestionAndAnswer($username,$password,$newQuestion,$newAnswer);
- public function resetPassword($passwordAnswer=null);
-}
-
-/*
-interface IUserManager
-{
-}*/
-
-
-
-abstract class TMembershipUser extends TUser implements IMembershipUser
-{
-}
-
-interface IRoleProvider
-{
- public function addUsersToRoles($users,$roles);
- public function removeUsersFromRoles($users,$roles);
- public function createRole($role);
- public function deleteRole($role,$throwOnPopulatedRole);
- public function getAllRoles();
- public function getRolesForUser($user);
- public function getUsersInRole($role);
- public function isUserInRole($user,$role);
- public function roleExists($role);
-}
-
-interface IMembershipProvider
-{
- public function getApplicationName();
- public function setApplicationName($value);
-
- public function createUser($username,$password,$email,$question,$answer,$isApproved); // return $key or error status
- public function deleteUser($username,$deleteAllRelatedData);
- public function updateUser($user);
-
- public function changePassword($username,$oldPassword,$newPassword);
- public function changePasswordQuestionAndAnswer($username,$password,$newQuestion,$newAnswer);
-
- public function encryptPassword($password);
- public function decryptPassword($encodedPassword);
- public function encodePassword($password,$format,$salt);
- public function decodePassword($password,$format);
- public function generateSalt();
-
- public function findUsersByEmail($email,$pageIndex,$pageSize);
- public function findUsersByName($email,$pageIndex,$pageSize);
-
- public function getAllUsers($pageIndex,$pageSize);
- public function getUser($username,$userkey,$userIsOnline);
- public function getNumberOfUsersOnline(); //???
- public function getUsernameByEmail($email);
- public function getPassword($username,$answer);
- public function resetPassword($username,$answer);
- public function unlockUser($username);
-
- public function validateUser($username,$password);
-
- public function onValidatingPassword($param);
-
- public function getEnablePasswordReset();
- public function setEnablePasswordReset($value);
- public function getEnablePasswordRetrieval();
- public function setEnablePasswordRetrieval($value);
- public function getMaxInvalidPasswordAttempts();
- public function setMaxInvalidPasswordAttempts($value);
- public function getUsernameFormat();
- public function setUsernameFormat($value);
- public function getPasswordFormat();
- public function setPasswordFormat($value);
- public function getRequiresQuestionAndAnswer();
- public function setRequiresQuestionAndAnswer($value);
- public function getRequiresUniqueEmail();
- public function setRequiresUniqueEmail($value);
-}
-
-
-?> \ No newline at end of file