//get configure actions links.
$configureActionLinks = self::configureActionLinks();
+ $contributions = [];
while ($dao->fetch()) {
- $contribution[$dao->id] = [];
- CRM_Core_DAO::storeValues($dao, $contribution[$dao->id]);
+ $contributions[$dao->id] = [];
+ CRM_Core_DAO::storeValues($dao, $contributions[$dao->id]);
// form all action links
$action = array_sum(array_keys(self::actionLinks()));
//build the configure links.
$sectionsInfo = CRM_Utils_Array::value($dao->id, $contriPageSectionInfo, []);
- $contribution[$dao->id]['configureActionLinks'] = CRM_Core_Action::formLink(self::formatConfigureLinks($sectionsInfo),
+ $contributions[$dao->id]['configureActionLinks'] = CRM_Core_Action::formLink(self::formatConfigureLinks($sectionsInfo),
$action,
array('id' => $dao->id),
ts('Configure'),
);
//build the contributions links.
- $contribution[$dao->id]['contributionLinks'] = CRM_Core_Action::formLink(self::contributionLinks(),
+ $contributions[$dao->id]['contributionLinks'] = CRM_Core_Action::formLink(self::contributionLinks(),
$action,
array('id' => $dao->id),
ts('Contributions'),
);
//build the online contribution links.
- $contribution[$dao->id]['onlineContributionLinks'] = CRM_Core_Action::formLink(self::onlineContributionLinks(),
+ $contributions[$dao->id]['onlineContributionLinks'] = CRM_Core_Action::formLink(self::onlineContributionLinks(),
$action,
array('id' => $dao->id),
ts('Links'),
);
//build the normal action links.
- $contribution[$dao->id]['action'] = CRM_Core_Action::formLink(self::actionLinks(),
+ $contributions[$dao->id]['action'] = CRM_Core_Action::formLink(self::actionLinks(),
$action,
array('id' => $dao->id),
ts('more'),
);
//show campaigns on selector.
- $contribution[$dao->id]['campaign'] = $allCampaigns[$dao->campaign_id] ?? NULL;
+ $contributions[$dao->id]['campaign'] = $allCampaigns[$dao->campaign_id] ?? NULL;
}
- if (isset($contribution)) {
- $this->assign('rows', $contribution);
- }
+ $this->assign('rows', $contributions);
}
public function search() {