symfony API

sfDoctrinePager Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfDoctrine pager class

Inheritence

sfDoctrinePager  <  sfPager

Method Summary

  • getCountQuery()
  • Doctrine_Query getQuery()
    Get the query for the pager
  • mixed getResults($hydrationMode = Doctrine::HYDRATE_RECORD)
    Get all the results for the pager instance
  • string getTableMethod()
    Get the name of the table method used to retrieve the query object for the pager
  • init()
    Initialize the pager instance and prepare it to be used for rendering
  • Doctrine_Record retrieveObject($offset)
    Retrieve the object for a certain offset
  • string serialize()
    Serialize the pager object
  • setQuery((Doctrine_Query) $query)
    Set query object for the pager
  • setTableMethod($tableMethodName)
    Set the name of the table method used to retrieve the query object for the pager
  • unserialize($serialized)
    Unserialize a pager object

Methods inherited from sfPager

getClass , getCurrent , getCurrentMaxLink , getCursor , getFirstIndice , getFirstPage , getLastIndice , getLastPage , getLinks , getMaxPerPage , getMaxRecordLimit , getNbResults , getNext , getNextPage , getObjectByCursor , getPage , getParameter , getParameterHolder , getPrevious , getPreviousPage , getResults , hasParameter , haveToPaginate , init , retrieveObject , setClass , setCursor , setLastPage , setMaxPerPage , setMaxRecordLimit , setNbResults , setPage , setParameter , __construct

Method Details

  • getCountQuery () Browse code

  • (Doctrine_Query) getQuery () Browse code

    Get the query for the pager

  • (mixed) getResults ($hydrationMode = Doctrine::HYDRATE_RECORD) Browse code

    $hydrationMode Doctrine::HYDRATE_* constants

    Get all the results for the pager instance

    returns Doctrine_Collection/array

  • (string) getTableMethod () Browse code

    Get the name of the table method used to retrieve the query object for the pager

  • init () Browse code

    Initialize the pager instance and prepare it to be used for rendering

  • (Doctrine_Record) retrieveObject ($offset) Browse code

    $offset

    Retrieve the object for a certain offset

  • (string) serialize () Browse code

    Serialize the pager object

  • setQuery ((Doctrine_Query) $query) Browse code

    $query

    Set query object for the pager

  • setTableMethod ($tableMethodName) Browse code

    $tableMethodName

    Set the name of the table method used to retrieve the query object for the pager

  • unserialize ($serialized) Browse code

    $serialized

    Unserialize a pager object