X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FPager.php;h=7b6d3c71338bd1422a83e6b3d54e71ab75378438;hb=22a559bfbff7e7b8288a750f3d7ef5ed63223d81;hp=9f8d87e8678739c71630cc414b7afc0c4aa7cbc4;hpb=56a4dcb3cdddcdc5831e89a0cf76f51a1e8e4a25;p=civicrm-core.git diff --git a/CRM/Utils/Pager.php b/CRM/Utils/Pager.php index 9f8d87e867..7b6d3c7133 100644 --- a/CRM/Utils/Pager.php +++ b/CRM/Utils/Pager.php @@ -26,13 +26,11 @@ */ /** - * * @package CRM * @copyright CiviCRM LLC (c) 2004-2015 */ /** - * * This class extends the PEAR pager object by substituting standard default pager arguments * We also extract the pageId from either the GET variables or the POST variable (since we * use a POST to jump to a specific page). At some point we should evaluate if we want @@ -55,6 +53,7 @@ class CRM_Utils_Pager extends Pager_Sliding { /** * The output of the pager. This is a name/value array with various keys * that an application could use to display the pager + * * @var array */ public $_response; @@ -110,8 +109,7 @@ class CRM_Utils_Pager extends Pager_Sliding { /** * A page cannot have two variables with the same form name. Hence in the * pager display, we have a form submission at the top with the normal - * page variable, but a different form element for one at the bottom - * + * page variable, but a different form element for one at the bottom. */ $this->_response['titleTop'] = ts('Page %1 of %2', array( 1 => '', @@ -133,15 +131,15 @@ class CRM_Utils_Pager extends Pager_Sliding { * @return array */ public function initialize(&$params) { - /* set the mode for the pager to Sliding */ + // set the mode for the pager to Sliding $params['mode'] = 'Sliding'; - /* also set the urlVar to be a crm specific get variable */ + // also set the urlVar to be a crm specific get variable. $params['urlVar'] = self::PAGE_ID; - /* set this to a small value, since we dont use this functionality */ + // set this to a small value, since we dont use this functionality $params['delta'] = 1; @@ -311,6 +309,11 @@ class CRM_Utils_Pager extends Pager_Sliding { /** * Build a url for pager links. + * + * @param string $key + * @param string $value + * + * @return string */ public function makeURL($key, $value) { $href = CRM_Utils_System::makeURL($key, TRUE);