* Class constructor
*
* @param array $queryParams array of parameters for query
- * @param int $action - action of search basic or advanced.
- * @param string $contributionClause if the caller wants to further restrict the search (used in contributions)
+ * @param \const|int $action - action of search basic or advanced.
+ * @param string $contributionClause if the caller wants to further restrict the search (used in contributions)
* @param boolean $single are we dealing only with one contact?
- * @param int $limit how many contributions do we want returned
+ * @param int $limit how many contributions do we want returned
*
- * @return CRM_Contact_Selector
- * @access public
+ * @param string $context
+ * @param null $compContext
+ *
+ * @return \CRM_Contribute_Selector_Search
+ @access public
*/
function __construct(&$queryParams,
$action = CRM_Core_Action::NONE,
* - View
* - Edit
*
+ * @param null $componentId
+ * @param null $componentAction
+ * @param null $key
+ * @param null $compContext
+ *
* @return array
* @access public
- *
*/
static function &links($componentId = NULL, $componentAction = NULL, $key = NULL, $compContext = NULL) {
$extraParams = NULL;
/**
* getter for array of the parameters required for creating pager.
*
- * @param
+ * @param $action
+ * @param $params
+ * @internal param $
* @access public
*/
function getPagerParams($action, &$params) {
),
);
if ($this->_includeSoftCredits) {
- self::$_columnHeaders =
+ self::$_columnHeaders =
array_merge(
- self::$_columnHeaders,
+ self::$_columnHeaders,
array(
array(
'name' => ts('Soft Credit Amount'),
)
);
}
- self::$_columnHeaders =
+ self::$_columnHeaders =
array_merge(
- self::$_columnHeaders,
+ self::$_columnHeaders,
array(
array(
'name' => ts('Type'),
- 'sort' => 'financial_type_id',
+ 'sort' => 'financial_type',
'direction' => CRM_Utils_Sort::DONTCARE,
),
array(
),
array(
'name' => ts('Status'),
- 'sort' => 'contribution_status_id',
+ 'sort' => 'contribution_status',
'direction' => CRM_Utils_Sort::DONTCARE,
),
array(
self::$_columnHeaders = array_merge($pre, self::$_columnHeaders);
}
if ($this->_includeSoftCredits) {
- self::$_columnHeaders =
+ self::$_columnHeaders =
array_merge(
- self::$_columnHeaders,
+ self::$_columnHeaders,
array(
array(
'name' => ts('Soft Credit For'),
)
);
}
- self::$_columnHeaders =
+ self::$_columnHeaders =
array_merge(
self::$_columnHeaders, array(
array('desc' => ts('Actions'))
return self::$_columnHeaders;
}
+ /**
+ * @return mixed
+ */
function alphabetQuery() {
return $this->_query->searchQuery(NULL, NULL, NULL, FALSE, FALSE, TRUE);
}
+ /**
+ * @return string
+ */
function &getQuery() {
return $this->_query;
}
return ts('CiviCRM Contribution Search');
}
+ /**
+ * @return mixed
+ */
function getSummary() {
return $this->_query->summaryContribution($this->_context);
}