RE: [PEAR] Pager 2.x
| From: | Lorenzo Alberton | Date: | Mon, 22 Mar 2004 00:33:03 +0000 |
| Subject: | RE: [PEAR] Pager 2.x | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11435@lists.php.net to get a copy of this message | ||
On Mon, 22 Mar 2004 01:19:33 +0100, Daniel Kopp wrote:
>> You could do that fairly easily extending Pager_Sliding and
>> overriding the "getNextPageID()" and getPrevPageID()" methods.
>
> Now this is strange: I try to override the two methods in my child-
> class and even the php-manual says that "calls of redefined methods
> in parent classes will call the redefined method" I cannot get the
> desired result from this:
>
> class mypager extends Pager {
Pager is no more the "core" class, it's only
a delegate. You have to extend Pager_Sliding or
Pager_Jumping.
HTH
Lorenzo