X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMember%2FPage%2FTab.php;h=085212a2e8aced22cd203b54f91aa90c4f141946;hb=3ad759fb650b43561fa65f60e6bf6b15f7b60b2a;hp=965354c36533aaaa64f59f440e0ca4ede47e9cd5;hpb=9888df99e2eacd5f393ec0c4f239e070df176218;p=civicrm-core.git diff --git a/CRM/Member/Page/Tab.php b/CRM/Member/Page/Tab.php index 965354c365..085212a2e8 100644 --- a/CRM/Member/Page/Tab.php +++ b/CRM/Member/Page/Tab.php @@ -27,6 +27,16 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { public $_permission = NULL; public $_contactId = NULL; + /** + * @var bool + */ + private $_isPaymentProcessor = FALSE; + + /** + * @var bool + */ + private $_accessContribution = FALSE; + /** * called when action is browse. */ @@ -118,8 +128,8 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { $isCancelSupported = CRM_Member_BAO_Membership::isCancelSubscriptionSupported( $membership[$dao->id]['membership_id']); $links = self::links('all', - NULL, - NULL, + FALSE, + FALSE, $isCancelSupported, $isUpdateBilling ); @@ -240,7 +250,7 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { /** * called when action is view. * - * @return null + * @return mixed */ public function view() { $controller = new CRM_Core_Controller_Simple( @@ -258,7 +268,7 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { /** * 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 @@ -486,8 +496,8 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { * Get action links. * * @param string $status - * @param null $isPaymentProcessor - * @param null $accessContribution + * @param bool $isPaymentProcessor + * @param bool $accessContribution * @param bool $isCancelSupported * @param bool $isUpdateBilling * @@ -496,8 +506,8 @@ class CRM_Member_Page_Tab extends CRM_Core_Page { */ public static function &links( $status = 'all', - $isPaymentProcessor = NULL, - $accessContribution = NULL, + $isPaymentProcessor = FALSE, + $accessContribution = FALSE, $isCancelSupported = FALSE, $isUpdateBilling = FALSE ) {