Re: New Pager extending problem

From: Date: Fri, 12 Sep 2003 17:50:33 +0000
Subject: Re: New Pager extending problem
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21446@lists.php.net to get a copy of this message
I'm sorry too. I didn't found a solution for this too. I'm using this for now: 1 - I create a folder called Pager inside a include path. 2 - Put my extending class inside it wih the name Pager_Myslide.php 3 - use now mode option as 'myslide' 4 - All works fine! I want to keep follow the progress of PEAR packages. "Lorenzo Alberton" <l.alberton@quipo.it> wrote in message news:20039121186.131543@the-simpsons... 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

« previous php.pear.dev (#21446) next »