[geeklog-cvs] Auth_Enterprise/Enterprise/Client User.php,1.2,1.3
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Tue Jul 27 16:42:24 EDT 2004
Update of /var/cvs/Auth_Enterprise/Enterprise/Client
In directory www:/tmp/cvs-serv25311
Modified Files:
User.php
Log Message:
There were some methods and properties missing when compared to the ServiceUser. I added most of them here (yes, some still need to be added).
Index: User.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Enterprise/Client/User.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** User.php 12 Jul 2004 03:01:53 -0000 1.2
--- User.php 27 Jul 2004 20:42:22 -0000 1.3
***************
*** 64,67 ****
--- 64,88 ----
/**
+ * Set of privileges for this user
+ * @access private
+ * @var array
+ */
+ private $accountLocked = null;
+
+ /**
+ * Set of privileges for this user
+ * @access private
+ * @var array
+ */
+ private $failedAttempts = null;
+
+ /**
+ * Set of privileges for this user
+ * @access private
+ * @var array
+ */
+ private $lastPWChange = null;
+
+ /**
* Groups user belongs to
* @access private
***************
*** 166,169 ****
--- 187,268 ----
/**
+ * Setter for failed authentication attempts
+ *
+ * @author Tony Bibbs <tony at geeklog.net
+ * @access public
+ * @param int $failedAttempts Number of failed authentication attempts
+ *
+ */
+ public function setFailedAttempts($failedAttempts)
+ {
+ $this->failedAttempts = $failedAttempts;
+ }
+
+ /**
+ * Gets the number of failed authentication attempts for a user
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @return int Number of failed attempts
+ *
+ */
+ public function getFailedAttempts()
+ {
+ return $this->failedAttempts;
+ }
+
+ /**
+ * Sets unix timestamp when user changed their password last
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @param string $lastPWChagneTimeStamp Unix timestamp
+ *
+ */
+ public function setLastPWChange($lastPWChangeTimeStamp)
+ {
+ $this->lastPWChange = $lastPWChangeTimeStamp;
+ }
+
+ /**
+ * Returns last time password was changed
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @return string Unix timestamp
+ *
+ */
+ public function getLastPWChange()
+ {
+ $this->lastPWChange;
+ }
+
+ /**
+ * Set whether or no the account is locked
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @param boolean $switch Whether not not account should be locked
+ *
+ */
+ public function setAccountLocked($switch)
+ {
+ $this->accountLocked = $switch;
+ }
+
+ /**
+ * Returns whether or not the account is locked
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @return boolean
+ *
+ */
+ public function getAccountLocked()
+ {
+ return $this->accountLocked;
+ }
+
+ /**
* Sets the groups the user belongs to
*
More information about the geeklog-cvs
mailing list