Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dataprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
dataprocessor
Commits
568405ab
Commit
568405ab
authored
4 years ago
by
jaapjansma
Browse files
Options
Downloads
Patches
Plain Diff
Added data source for membership payments.
parent
77b5709d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
Civi/DataProcessor/Factory.php
+1
-0
1 addition, 0 deletions
Civi/DataProcessor/Factory.php
Civi/DataProcessor/Source/Member/MembershipPaymentSource.php
+33
-0
33 additions, 0 deletions
Civi/DataProcessor/Source/Member/MembershipPaymentSource.php
with
35 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
568405ab
...
...
@@ -2,6 +2,7 @@
*
Fixed issue with filtering on contact subtype.
*
Fixed issue with returning after a participant task.
*
Added data source for membership payments.
# Version 1.8.0
...
...
This diff is collapsed.
Click to expand it.
Civi/DataProcessor/Factory.php
+
1
−
0
View file @
568405ab
...
...
@@ -122,6 +122,7 @@ class Factory {
$this
->
addDataSource
(
'primary_membership'
,
new
Definition
(
'Civi\DataProcessor\Source\Member\PrimaryMembershipSource'
),
E
::
ts
(
'Primary Membership (retrieve the owner membership id'
));
$this
->
addDataSource
(
'membership_type'
,
new
Definition
(
'Civi\DataProcessor\Source\Member\MembershipTypeSource'
),
E
::
ts
(
'Membership Type'
));
$this
->
addDataSource
(
'membership_status'
,
new
Definition
(
'Civi\DataProcessor\Source\Member\MembershipStatusSource'
),
E
::
ts
(
'Membership Status'
));
$this
->
addDataSource
(
'membership_payment'
,
new
Definition
(
'Civi\DataProcessor\Source\Member\MembershipPaymentSource'
),
E
::
ts
(
'Membership Payment'
));
$this
->
addDataSource
(
'note'
,
new
Definition
(
'Civi\DataProcessor\Source\Note\NoteSource'
),
E
::
ts
(
'Note'
));
$this
->
addDataSource
(
'csv'
,
new
Definition
(
'Civi\DataProcessor\Source\CSV'
),
E
::
ts
(
'CSV File'
));
$this
->
addDataSource
(
'sqltable'
,
new
Definition
(
'Civi\DataProcessor\Source\SQLTable'
),
E
::
ts
(
'SQL Table'
));
...
...
This diff is collapsed.
Click to expand it.
Civi/DataProcessor/Source/Member/MembershipPaymentSource.php
0 → 100644
+
33
−
0
View file @
568405ab
<?php
/**
* @author Jaap Jansma <jaap.jansma@civicoop.org>
* @license AGPL-3.0
*/
namespace
Civi\DataProcessor\Source\Member
;
use
Civi\DataProcessor\Source\AbstractCivicrmEntitySource
;
use
CRM_Dataprocessor_ExtensionUtil
as
E
;
class
MembershipPaymentSource
extends
AbstractCivicrmEntitySource
{
/**
* Returns the entity name
*
* @return String
*/
protected
function
getEntity
()
{
return
'MembershipPayment'
;
}
/**
* Returns the table name of this entity
*
* @return String
*/
protected
function
getTable
()
{
return
'civicrm_membership_payment'
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment