- CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
- }
- // action
- $this->_action = CRM_Utils_Request::retrieve('action', 'String',
- $this, FALSE, 'add'
- );
- $this->_context = CRM_Utils_Request::retrieve('context', 'String',
- $this, FALSE, 'membership'
- );
- $this->_id = CRM_Utils_Request::retrieve('id', 'Positive',
- $this
- );
- $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive',
- $this
- );
- if ($this->_id) {
- $this->_memType = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_Membership', $this->_id, 'membership_type_id');