Author: sevein
Date: Fri Oct 29 15:28:58 2010
New Revision: 8689
Log:
Storage user slug in the user session.
Modified:
trunk/lib/myUser.class.php
Modified: trunk/lib/myUser.class.php
==============================================================================
--- trunk/lib/myUser.class.php Fri Oct 29 15:25:05 2010 (r8688)
+++ trunk/lib/myUser.class.php Fri Oct 29 15:28:58 2010 (r8689)
@@ -76,6 +76,7 @@
}
$this->setAttribute('user_id', $user->id);
+ $this->setAttribute('user_slug', $user->slug);
$this->setAttribute('user_name', $user->username);
}
@@ -87,6 +88,7 @@
$this->setAuthenticated(false);
$this->getAttributeHolder()->remove('user_id');
+ $this->getAttributeHolder()->remove('user_slug');
$this->getAttributeHolder()->remove('user_name');
$this->getAttributeHolder()->remove('login_route');
$this->getAttributeHolder()->remove('nav_context_module');
@@ -97,6 +99,11 @@
return $this->getAttribute('user_id');
}
+ public function getUserSlug()
+ {
+ return $this->getAttribute('user_slug');
+ }
+
public function getUserName()
{
return $this->getAttribute('user_name');
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.