Re: init() method

Matthias Nothhaft <[email protected]> Sun, 18 Dec 2005 21:31:28 +0100
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Lukas Kahwe Smith schrieb:
> Lukas Kahwe Smith wrote:
> 
>> Arnaud Limbourg wrote:
> 
> 
>>> Would the code become ?
>>>
>>> $lu = LiveUser::factory();
>>> $lu->init();
>>
>>
>>
>> init() would also no longer accept any parameters ..
> 
> 
> I have made the necessary changes. Flexibility is now radically
> increased and performance might be very slightly increased due to less
> function calls being made.
> 
> The code in userland is now alot more complex though, then again its one
> of those things you code once, also if you do not use the remember
> feature its not all that bad. However I would appreciate if people would
> play with the new API a bit and suggest improvements. I have updated all
> examples.
> 

I just went over the code for subclassing it ...

I think there is an exclamation mark where it should not be at the end
of LU::login() on line 1062 -> force_start

Regards,
Matthias