public $_permission = NULL;
public $_contactId = NULL;
+ /**
+ * @var bool
+ */
+ private $_isPaymentProcessor = FALSE;
+
+ /**
+ * @var bool
+ */
+ private $_accessContribution = FALSE;
+
/**
* called when action is browse.
*/
$isCancelSupported = CRM_Member_BAO_Membership::isCancelSubscriptionSupported(
$membership[$dao->id]['membership_id']);
$links = self::links('all',
- NULL,
- NULL,
+ FALSE,
+ FALSE,
$isCancelSupported,
$isUpdateBilling
);
/**
* called when action is view.
*
- * @return null
+ * @return mixed
*/
public function view() {
$controller = new CRM_Core_Controller_Simple(
/**
* called when action is update or new.
*
- * @return null
+ * @return mixed
*/
public function edit() {
// We're trying to edit existing memberships or create a new one so we'll first check that a membership
* Get action links.
*
* @param string $status
- * @param null $isPaymentProcessor
- * @param null $accessContribution
+ * @param bool $isPaymentProcessor
+ * @param bool $accessContribution
* @param bool $isCancelSupported
* @param bool $isUpdateBilling
*
*/
public static function &links(
$status = 'all',
- $isPaymentProcessor = NULL,
- $accessContribution = NULL,
+ $isPaymentProcessor = FALSE,
+ $accessContribution = FALSE,
$isCancelSupported = FALSE,
$isUpdateBilling = FALSE
) {