-
Returns the total number of results.
-
Returns the current result.
-
Returns the current class.
-
Returns the current object.
-
(integer) getCurrentMaxLink ()
Browse code
Returns the current pager's max link.
-
(integer) getCursor ()
Browse code
Returns the current cursor.
-
(integer) getFirstIndice ()
Browse code
Returns the first index on the current page.
-
(integer) getFirstPage ()
Browse code
Returns the first page number.
-
(integer) getLastIndice ()
Browse code
Returns the last index on the current page.
-
(integer) getLastPage ()
Browse code
Returns the last page number.
-
(array) getLinks ($nb_links)
Browse code
| $nb_links |
The maximum number of page numbers to return |
Returns an array of page numbers to use in pagination links.
-
(integer) getMaxPerPage ()
Browse code
Returns the maximum number of results per page.
-
(integer) getMaxRecordLimit ()
Browse code
Returns the current pager's max record limit.
-
(integer) getNbResults ()
Browse code
Returns the number of results.
-
(mixed|null) getNext ()
Browse code
Returns the next object.
-
(integer) getNextPage ()
Browse code
Returns the next page.
-
(mixed) getObjectByCursor ($pos)
Browse code
Returns an object by cursor position.
-
Returns the current page.
-
(mixed) getParameter ($name, $default)
Browse code
Returns a parameter.
-
(sfParameterHolder) getParameterHolder ()
Browse code
Returns the current pager's parameter holder.
-
(mixed|null) getPrevious ()
Browse code
Returns the previous object.
-
(integer) getPreviousPage ()
Browse code
Returns the previous page.
-
Returns an array of results on the given page.
-
(boolean) hasParameter ($name)
Browse code
Checks whether a parameter has been set.
-
(boolean) haveToPaginate ()
Browse code
Returns true if the current query requires pagination.
-
Initialize the pager.
Function to be called after parameters have been set.
-
Loads data into properties used for iteration.
-
(boolean) isFirstPage ()
Browse code
Returns true if on the first page.
-
(boolean) isIteratorInitialized ()
Browse code
Returns true if the properties used for iteration have been initialized.
-
(boolean) isLastPage ()
Browse code
Returns true if on the last page.
-
Returns the current key.
-
Advances the internal pointer and returns the current result.
-
Empties properties used for iteration.
-
(mixed) retrieveObject ()
Browse code
Returns an object at a certain offset.
Used internally by {@link getCurrent()}.
-
Resets the internal pointer and returns the current result.
-
Sets the current class.
-
Sets the current cursor.
-
Sets the last page number.
-
Sets the maximum number of results per page.
-
setMaxRecordLimit ($limit)
Browse code
Sets the current pager's max record limit.
-
Sets the number of results.
-
Sets the current page.
-
setParameter ($name, $value)
Browse code
Sets a parameter.
-
Returns true if pointer is within bounds.
-
__construct ($class, $maxPerPage)
Browse code
| $class |
The model class |
| $maxPerPage |
Number of records to display per page |
Constructor.