Re: New Pager extending problem
| From: | Lorenzo Alberton | Date: | Thu, 11 Sep 2003 23:18:06 +0000 |
| Subject: | Re: New Pager extending problem | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21412@lists.php.net to get a copy of this message | ||
On Thu, 11 Sep 2003 16:56:23 -0300, Marcos Neves wrote:
>>> The new Pager class does not support direct extending, cause
>>> inside his constructor it assign a new Object to this. Any
>>> solution for this?
>>
>> Technically, you still can write
>>
>> require_once 'Pager/Sliding.php'
>> (== the old PEAR::Pager_Sliding)
>> or
>> require_once 'Pager/Jumping.php'
>> (== the old PEAR::Pager)
>>
>>
>> and extend one of those...
>>
> That's what I have done!
> the problem is that I have to code twice my extend class that
> implements new vars and method for both.
Well, of course if you only use one "mode", you can extend
only the one you need. Or keep using the last v.1.x release...
Sorry, but I couldn't find any other solution to merge
the two classes and keep BC...
---
Lorenzo