* @param bool|int $isTest if true, membership is for a test site
* @param bool|int $isOwner if true, only retrieve membership records for owners //LCD
*
- * @return returns the number of members of type $membershipTypeId whose
+ * @return integer the number of members of type $membershipTypeId whose
* start_date is between $startDate and $endDate
*/
//LCD
$isProcessSeparateMembershipTransaction, $defaultContributionTypeID) {
$result = NULL;
$isTest = CRM_Utils_Array::value('is_test', $membershipParams, FALSE);
- $errors = array();
+ $errors = $createdMemberships = array();
if ($isPaidMembership) {
$result = CRM_Contribute_BAO_Contribution_Utils::processConfirm($form, $membershipParams,
}
}
- $createdMemberships = array();
$membership = NULL;
if (!empty($membershipContribution) && !is_a($membershipContribution, 'CRM_Core_Error')) { {
$membershipContributionID = $membershipContribution->id;
/**
* Function to find the membership status based on start date, end date, join date & status date.
*
- * @param date $startDate start date of the member whose membership status is to be calculated.
- * @param date $endDate end date of the member whose membership status is to be calculated.
- * @param date $joinDate join date of the member whose membership status is to be calculated.
+ * @param string $startDate start date of the member whose membership status is to be calculated.
+ * @param string $endDate end date of the member whose membership status is to be calculated.
+ * @param string $joinDate join date of the member whose membership status is to be calculated.
* @param \date|string $statusDate status date of the member whose membership status is to be calculated.
* @param boolean $excludeIsAdmin exclude the statuses those having is_admin = 1
* @param $membershipTypeID
* %P - uppercase ante/post meridiem ('AM', 'PM')
* %Y - year as a decimal number including the century ('2005')
*
- * @param $dateString
+ * @param string $dateString
* @param string $format the output format
* @param array $dateParts an array with the desired date parts
*