Re: PEAR Auth, new user data

From: Date: Wed, 03 Sep 2003 14:16:37 +0000
Subject: Re: PEAR Auth, new user data
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7552@lists.php.net to get a copy of this message
Write a new class *extending* Auth. Don't attemp to change auth itself. On 3 Sep 2003 at 9:08, jsWalter wrote: > Is there a way to add a set of user data (team, level, active state, > etc) to the authentication object? > > I thought there must be some generic way to pass in an array with this > data so that I can access it via... > > $myAuth->team; > > I can do this by adding the fields I need to the package itself, but > that seems a bit much. If I need to change this data set, I would have > to change the package. Not a good idea. If someone else needs a > different set, they should not have to modify the package, just pass > in a different array set. > > Any ides? > > Thanks > > Walter

« previous php.pear.general (#7552) next »