Re: [Maypole] retrieve / search in the User.pm

From: Jay Strauss (me at heyjay.com)
Date: Thu Jan 13 2005 - 14:54:06 GMT


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

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT