3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class contains all the function that are called using AJAX (jQuery)
21 class CRM_Contribute_Page_AJAX
{
24 * Get Soft credit to list in DT
26 public static function getSoftContributionRows() {
27 $requiredParameters = [
29 'context' => 'String',
31 $optionalParameters = [
32 'entityID' => 'Integer',
33 'isTest' => 'Integer',
36 $params = CRM_Core_Page_AJAX
::defaultSortAndPagerParams();
37 $params +
= CRM_Core_Page_AJAX
::validateParams($requiredParameters, $optionalParameters);
39 $softCreditList = CRM_Contribute_BAO_ContributionSoft
::getSoftContributionSelector($params);
40 CRM_Utils_JSON
::output($softCreditList);