I want to get all the contribution table entries as a list which are equivalent to a given ID.
My contribution table has 4 entries and the contact ID for all the four contribution is 2.
I'm using the below method to get the details, but which takes the given ID as contactID and return the entries when contactID = contributionID..
foreach ($values as $key => $value){
$contributionID = $values[$key]; //contribution IDs are 1,2,3,4,5
// get the details for all selected contacts
list($contributionDetails) = CRM_Utils_Token::getTokenDetails(array($contributionID),
$this->_returnProperties,
NULL, NULL, FALSE,
$this->_allTokens
);
Mean this only returns a row where contribution ID = contact ID = 2..but i want to get all the raw where contribution id is equal to 1,2,3,4 and 5.. how should i get it?
Thanks in advance!