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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Don Wijesooriya
dataprocessor
Commits
cc6fc331
Commit
cc6fc331
authored
5 years ago
by
sarvesh21
Browse files
Options
Downloads
Patches
Plain Diff
added campaign data source
parent
09d5ae6b
No related branches found
No related tags found
No related merge requests found
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/Campaign/CampaignSource.php
+32
-0
32 additions, 0 deletions
Civi/DataProcessor/Source/Campaign/CampaignSource.php
with
33 additions
and
0 deletions
Civi/DataProcessor/Factory.php
+
1
−
0
View file @
cc6fc331
...
...
@@ -107,6 +107,7 @@ class Factory {
$this
->
addDataSource
(
'address'
,
'Civi\DataProcessor\Source\Contact\AddressSource'
,
E
::
ts
(
'Address'
));
$this
->
addDataSource
(
'phone'
,
'Civi\DataProcessor\Source\Contact\PhoneSource'
,
E
::
ts
(
'Phone'
));
$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
(
'case'
,
'Civi\DataProcessor\Source\Cases\CaseSource'
,
E
::
ts
(
'Case'
));
$this
->
addDataSource
(
'relationship'
,
'Civi\DataProcessor\Source\Contact\RelationshipSource'
,
E
::
ts
(
'Relationship'
));
...
...
This diff is collapsed.
Click to expand it.
Civi/DataProcessor/Source/Campaign/CampaignSource.php
0 → 100644
+
32
−
0
View file @
cc6fc331
<?php
/**
* @author Jaap Jansma <jaap.jansma@civicoop.org>
* @license AGPL-3.0
*/
namespace
Civi\DataProcessor\Source\Campaign
;
use
Civi\DataProcessor\Source\AbstractCivicrmEntitySource
;
use
CRM_Dataprocessor_ExtensionUtil
as
E
;
class
CampaignSource
extends
AbstractCivicrmEntitySource
{
/**
* Returns the entity name
*
* @return String
*/
protected
function
getEntity
()
{
return
'Campaign'
;
}
/**
* Returns the table name of this entity
*
* @return String
*/
protected
function
getTable
()
{
return
'civicrm_campaign'
;
}
}
\ No newline at end of file
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