CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to access Rows per Page variable
Pages: [1]

Author Topic: How to access Rows per Page variable  (Read 2500 times)

AlexR

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Drupal
  • MySQL version: 5.1.69
  • PHP version: 5.3.23
How to access Rows per Page variable
June 27, 2013, 09:41:59 am
Is there a way to get the value of the rows per page option (25,50,100) to set as a variable in a php file?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How to access Rows per Page variable
June 27, 2013, 04:07:17 pm
Not sure where you need this and  what you're doing w/ it, but ...

Most classes use $this->_limit within the methods, and there's a constant set at:
./Utils/Pager.php:52:  CONST ROWCOUNT = 50

Grep on limit and ROWCOUNT might get you relevant examples.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to access Rows per Page variable

This forum was archived on 2017-11-26.