ZF-4676: Zend_Paginator_Adapter_Interface is missing documentation for count() that used to be there

Issue Type: Docs: Problem Created: 2008-10-22T03:42:35.000+0000 Last Updated: 2008-11-13T14:10:14.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Roger Hunwicks (rhunwicks) Assignee: Jurrien Stutterheim (norm2782) Tags: - Zend_Paginator

Related issues: Attachments:


Zend_Paginator_Adapter_Interface is missing the documentation for count() as of Rev12071. In Rev10200 it was:

<pre class="highlight">
     * Returns the total number of rows in the collection.
     * @return integer
    //public function count();


Posted by julien PAULI (doctorrock83) on 2008-10-22T04:55:33.000+0000

The interface is not told to redifine extended methods.

Count() is not actually in the Zend_Paginator_Adapter_Interface source code

Posted by Roger Hunwicks (rhunwicks) on 2008-10-22T05:01:48.000+0000

I realize that count() isn't actually defined, but the Zend_Paginator_Adapter_Interface extends Countable, so any class implementing the Interface has to have a count() function.

The earlier versions of this file had the code above, which is in fact all commented out, but serves as a useful reminder to someone creating a class to implement the interface, that it needs have a count() function as well as getItems().

Posted by Jurrien Stutterheim (norm2782) on 2008-10-22T08:37:05.000+0000

Resolved in revision 12078

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:14.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.