<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
/**
* Class constructor
*
- * @param array $queryParams array of parameters for query
- * @param int $action - action of search basic or advanced.
- * @param string $additionalClause if the caller wants to further restrict the search (used in participations)
+ * @param array $queryParams array of parameters for query
+ * @param \const|int $action - action of search basic or advanced.
+ * @param string $additionalClause if the caller wants to further restrict the search (used in participations)
* @param boolean $single are we dealing only with one contact?
- * @param int $limit how many signers do we want returned
+ * @param int $limit how many signers do we want returned
*
- * @return CRM_Contact_Selector
- * @access public
+ * @param string $context
+ *
+ * @return \CRM_Pledge_Selector_Search
+ @access public
*/
function __construct(&$queryParams,
$action = CRM_Core_Action::NONE,
$this->_query->_distinctComponentClause = "civicrm_pledge.id";
$this->_query->_groupByComponentClause = " GROUP BY civicrm_pledge.id ";
}
- //end of constructor
/**
* This method returns the links that are given for each search row.
return self::$_links;
}
- //end of function
/**
* getter for array of the parameters required for creating pager.
*
- * @param
+ * @param $action
+ * @param array $params
+ *
* @access public
*/
function getPagerParams($action, &$params) {
$params['buttonTop'] = 'PagerTopButton';
$params['buttonBottom'] = 'PagerBottomButton';
}
- //end of function
/**
* Returns total number of rows for the query.
}
/**
- *
* @return array $qill which contains an array of strings
* @access public
*/
if (!$this->_single) {
$pre = array(
- array('desc' => ts('Contact Id')),
+ array('desc' => ts('Contact ID')),
array(
'name' => ts('Name'),
'sort' => 'sort_name',
return self::$_columnHeaders;
}
+ /**
+ * @return string
+ */
function &getQuery() {
return $this->_query;
}
return ts('Pledge Search');
}
}
-//end of class