cvs: pear /Pager/examples Pager_Wrapper.php

From: Date: Sat, 09 Apr 2005 17:50:05 +0000
Subject: cvs: pear /Pager/examples Pager_Wrapper.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31081@lists.php.net to get a copy of this message
quipo Sat Apr 9 13:50:05 2005 EDT Modified files: /pear/Pager/examples Pager_Wrapper.php Log: more verbose docs http://cvs.php.net/diff.php/pear/Pager/examples/Pager_Wrapper.php?r1=1.13&r2=1.14&ty=u Index: pear/Pager/examples/Pager_Wrapper.php diff -u pear/Pager/examples/Pager_Wrapper.php:1.13 pear/Pager/examples/Pager_Wrapper.php:1.14 --- pear/Pager/examples/Pager_Wrapper.php:1.13 Wed Apr 6 13:37:14 2005 +++ pear/Pager/examples/Pager_Wrapper.php Sat Apr 9 13:50:04 2005 @@ -37,7 +37,10 @@ * @param array PEAR::Pager options * @param boolean Disable pagination (get all results) * @param integer fetch mode constant - * @param array parameters for query placeholders (don't use for table names or column names) + * @param mixed parameters for query placeholders + * If you use placeholders for table names or column names, please + * count the # of items returned by the query and pass it as an option: + * $pager_options['totalItems'] = count_records('some query'); * @return array with links and paged data */ function Pager_Wrapper_DB(&$db, $query, $pager_options = array(), $disabled = false, $fetchMode = DB_FETCHMODE_ASSOC, $dbparams = null)

« previous php.pear.cvs (#31081) next »