[Maypole] retrieve / search in the User.pm
Jay Strauss
me@heyjay.com
Thu, 13 Jan 2005 08:54:06 -0600
Johnny Morano wrote:
> Hi All,
>
> I'd like to know what the difference is between retrieve and search, 2
> methods that are supposed to be in the User.pm when you want to have
> authentication.
>
> The reason why i'm asking, is because i have to do an LDAP
> authentication... and i finally got it to work (after many many hours of
> headaches and too much black coffee), but i think i've created too much
> obfuscated code :-s I've attached my User.pm module to this mail...
> _any_ help is more than welcome.
>
> Thanks !
> Johnny
In class::dbi search returns a list of objects that meet the search
criteria whereas retrieve returns exactly 0 or 1 object with have that
primary key supplied to the retieve method
Jay