[Solar-talk] Handles or IDs?
Paul M Jones
pmjones at ciaweb.net
Tue Nov 28 14:30:59 PST 2006
On Nov 28, 2006, at 4:17 PM, Antti Holvikari wrote:
> I'm thinking of migrating to using user ids instead of user handles,
> but all Solar classes use handles (strings). Is everyone using just
> handles or is someone using IDs? What do you think, should we keep the
> all the adapters handle based and deal with the problem somehow or try
> to change to using IDs only?
I'm using handles everywhere all the time.
Rodrigo mad e arequest a while back that I implemented: the Auth
adapters allow you to retrieve a "uid" (if the adapter supports it,
same thing with "email", "moniker", and "uri"). The "uid" value is a
"user ID" or "unique ID" depending on how you look at it, but the
idea is the same: a numeric ID that maps to the handle. Your various
table classes can then use a "uid" value instead of a "handle"
value. Solar_Auth_Adapter_Sql has an example of this, iirc.
Does that help at all?
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list