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
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
d5a5456b
Commit
d5a5456b
authored
5 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Add Recurring Contribution as datasource
parent
c48e1401
No related branches found
No related tags found
1 merge request
!34
Add Recurring Contribution as datasource
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Civi/DataProcessor/Factory.php
+1
-0
1 addition, 0 deletions
Civi/DataProcessor/Factory.php
Civi/DataProcessor/Source/Contribution/ContributionRecurSource.php
+49
-0
49 additions, 0 deletions
...Processor/Source/Contribution/ContributionRecurSource.php
with
50 additions
and
0 deletions
Civi/DataProcessor/Factory.php
+
1
−
0
View file @
d5a5456b
...
...
@@ -105,6 +105,7 @@ class Factory {
$this
->
addDataSource
(
'website'
,
'Civi\DataProcessor\Source\Contact\WebsiteSource'
,
E
::
ts
(
'Website'
));
$this
->
addDataSource
(
'campaign'
,
'Civi\DataProcessor\Source\Campaign\CampaignSource'
,
E
::
ts
(
'Campaign'
));
$this
->
addDataSource
(
'contribution'
,
'Civi\DataProcessor\Source\Contribution\ContributionSource'
,
E
::
ts
(
'Contribution'
));
$this
->
addDataSource
(
'contribution_recur'
,
'Civi\DataProcessor\Source\Contribution\ContributionRecurSource'
,
E
::
ts
(
'Recurring Contribution'
));
$this
->
addDataSource
(
'case'
,
'Civi\DataProcessor\Source\Cases\CaseSource'
,
E
::
ts
(
'Case'
));
$this
->
addDataSource
(
'relationship'
,
'Civi\DataProcessor\Source\Contact\RelationshipSource'
,
E
::
ts
(
'Relationship'
));
$this
->
addDataSource
(
'relationship_type'
,
'Civi\DataProcessor\Source\Contact\RelationshipTypeSource'
,
E
::
ts
(
'Relationship Type'
));
...
...
This diff is collapsed.
Click to expand it.
Civi/DataProcessor/Source/Contribution/ContributionRecurSource.php
0 → 100644
+
49
−
0
View file @
d5a5456b
<?php
/**
* @author Jaap Jansma <jaap.jansma@civicoop.org>
* @license AGPL-3.0
*/
namespace
Civi\DataProcessor\Source\Contribution
;
use
Civi\DataProcessor\Source\AbstractCivicrmEntitySource
;
use
CRM_Dataprocessor_ExtensionUtil
as
E
;
class
ContributionRecurSource
extends
AbstractCivicrmEntitySource
{
/**
* Returns the entity name
*
* @return String
*/
protected
function
getEntity
()
{
return
'ContributionRecur'
;
}
/**
* Returns the table name of this entity
*
* @return String
*/
protected
function
getTable
()
{
return
'civicrm_contribution_recur'
;
}
/**
* Returns the default configuration for this data source
*
* @return array
*/
public
function
getDefaultConfiguration
()
{
return
[
'filter'
=>
[
'is_test'
=>
[
'op'
=>
'='
,
'value'
=>
'0'
,
]
]
];
}
}
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