JUser Question (setLastVisit)

8 views
Skip to first unread message

Paladin

unread,
Nov 22, 2009, 1:05:20 AM11/22/09
to Joomla! Framework Development
When JUser->setLastVisit() is called, it sets the last visit field in
the database, but not in the user object in memory. Intentional?

(BTW, add this one to the list of methods that will probably break in
php6. From the construction of it, it looks like it's intended to be
called both as a dynamic and as a static method, and its proper
function depends upon a definition of $this. PHP6 will not let you
call dynamic methhods as static, and if declared static, $this becomes
undefined for method.)

I'm just curious what the circumstances are where this would be
logically called as static. I can't find an example, yet the code
clearly expects to be called as a static sometimes.

Louis Landry

unread,
Nov 23, 2009, 12:25:12 PM11/23/09
to joomla-dev...@googlegroups.com
I think there was a time in the Joomla 1.5 lifecycle where that was called statically... or perhaps it was a carry over from 1.0.  Not sure, but whatever the case the reason is not irrelevant.  We can get rid of the static notion there.

Cheers,
Louis
--
Development Coordinator
Joomla! ... because open source matters.
http://www.joomla.org
Reply all
Reply to author
Forward
0 new messages