Re: init() method
Lukas Kahwe Smith <[email protected]> Mon, 12 Dec 2005 09:02:04 +0100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Arnaud Limbourg wrote: > Conceptually it makes sense but it makes me wonder if we need to have > users call init at all then, it can be done automatically. he still needs to call it .. because of _unfreeze() .. it can fail and it just makes the error handling cleaner. > Would the code become ? > > $lu = LiveUser::factory(); > $lu->init(); init() would also no longer accept any parameters .. > // the user decides to log in > $lu->login(); yes .. regards, Lukas