Commit graph

365 commits

Author SHA1 Message Date
Marc Michalsky forumZFD
4c6827b451
update project values & options from Twingle 2020-10-13 14:16:36 +02:00
Marc Michalsky forumZFD
5ed2f30133
add state "TwingleProject updated" 2020-10-13 14:16:07 +02:00
Marc Michalsky forumZFD
ea15f7d597
solve merge conflict
prepared to include project options into campaign

not workin yet
2020-10-13 14:15:03 +02:00
Marc Michalsky forumZFD
36ff75843a
add value formatting 2020-10-13 09:11:09 +02:00
Marc Michalsky forumZFD
18100e866b
code cleaning
removed unnecessary code
2020-10-13 09:09:39 +02:00
Marc Michalsky forumZFD
39fa2cc603
add static attributes for arrays from json files 2020-10-13 09:07:54 +02:00
Marc Michalsky forumZFD
8cb0a48009
move check for latest_update one abstraction layer up 2020-10-13 09:04:53 +02:00
Marc Michalsky forumZFD
0a2166ed1b
prepared to include project options into campaign
not workin yet
2020-10-07 16:56:13 +02:00
Marc Michalsky forumZFD
8b8f96cff7
changed sync process from Get to Post call to meet REST specification 2020-10-07 15:33:33 +02:00
Marc Michalsky forumZFD
6b1d46114d
catch errors 2020-10-07 15:21:09 +02:00
Marc Michalsky forumZFD
510d50843a
pass $project parameter by reference 2020-10-07 15:20:48 +02:00
Marc Michalsky forumZFD
55d0add9e7
specify $projectId parameter as int 2020-10-07 15:19:56 +02:00
Marc Michalsky forumZFD
6b761ddbbb
delete unnecessary function 2020-10-07 15:19:14 +02:00
Marc Michalsky forumZFD
e7955aebc6
rename "status" to "state" in response array 2020-10-07 15:17:48 +02:00
Marc Michalsky forumZFD
0053ecc30f
get project options via API call 2020-10-07 15:16:23 +02:00
Marc Michalsky forumZFD
0205b59c30
store project options
rename "values" to "project" (in constructor) and "settings" to "options"
2020-10-07 15:10:26 +02:00
Marc Michalsky forumZFD
a9d9dd5ace
rename "state" to "status" in response array 2020-10-07 15:06:56 +02:00
Marc Michalsky forumZFD
953adaf319
implemented sync from CiviCRM to Twingle 2020-10-06 22:40:15 +02:00
Marc Michalsky forumZFD
aef6b64004
rename "Models" to "BAO" in paths and namespaces 2020-10-05 17:01:47 +02:00
Marc Michalsky forumZFD
4b2047fdb0
no need for an extra array 2020-10-02 16:56:40 +02:00
Marc Michalsky forumZFD
14a16b8cfb
add comments 2020-10-02 16:55:59 +02:00
Marc Michalsky forumZFD
3fd17d4bf0
add parameter for direction to function call 2020-10-02 16:55:37 +02:00
Marc Michalsky forumZFD
9cb1feaed4
project_type "default" is a value, not a key 2020-10-02 16:54:03 +02:00
Marc Michalsky forumZFD
11ba3c280a
profund code refactoring 2020-10-01 21:22:12 +02:00
Marc Michalsky forumZFD
80e8dab017
prepare to sync TwingleProjects to Twingle 2020-10-01 11:52:29 +02:00
Marc Michalsky forumZFD
ad4f32e2d6
change way to give back the TwigleProject response 2020-10-01 11:49:32 +02:00
Marc Michalsky forumZFD
96952b7253
change API_Exeption message: no line breaks 2020-10-01 11:47:21 +02:00
Marc Michalsky forumZFD
cc3b14e32c
delete custom field for twingle_project_name
store value in 'title' instead
2020-09-30 15:34:50 +02:00
Marc Michalsky forumZFD
c7eca6f641
add comments and style code 2020-09-30 15:34:06 +02:00
Marc Michalsky forumZFD
85afeedd23
bug fix: test mode 2020-09-30 15:33:04 +02:00
Marc Michalsky forumZFD
aafce7c32f
add $state array 2020-09-30 15:32:29 +02:00
Marc Michalsky forumZFD
e8cbf505a9
edit API_Exeption message -> probably api key is missing or wrong 2020-09-30 15:29:31 +02:00
Marc Michalsky forumZFD
81bd4bff44
change $organisationIds to $organisationId 2020-09-30 15:28:52 +02:00
Marc Michalsky forumZFD
f9cbe9db6c
implement test mode for TwingleSync 2020-09-30 15:27:55 +02:00
Marc Michalsky forumZFD
50b0ff7da8
preparation for updating via Twingle API 2020-09-29 21:47:29 +02:00
Marc Michalsky forumZFD
338539e9be
add campaign id to translated values array 2020-09-29 16:15:50 +02:00
Marc Michalsky forumZFD
bbca822f15
comments 2020-09-29 16:14:49 +02:00
Marc Michalsky forumZFD
0ce48fa58b
get campaign id and timestamp of existing projects 2020-09-29 16:14:10 +02:00
Marc Michalsky forumZFD
350bb513a0
remove unnecessary implode() 2020-09-29 16:13:31 +02:00
Marc Michalsky forumZFD
7a94e43801
set values and attributes in the right order 2020-09-29 16:12:46 +02:00
Marc Michalsky forumZFD
add87edded
bug fix 2020-09-29 14:17:40 +02:00
Marc Michalsky forumZFD
f4b49077bb
Translate values if values come from CiviCRM Campaign API 2020-09-29 14:16:49 +02:00
Marc Michalsky forumZFD
9f2b5c4913
add deactivate() function to deactivate a project 2020-09-29 14:15:34 +02:00
Marc Michalsky forumZFD
a05b671f90
translate values in two directions 2020-09-29 14:15:04 +02:00
Marc Michalsky forumZFD
cbca983d8b
add project title to result array and change "update" to "fetched"
later it might become handy to distinguish the update direction (from Twingle to CiviCRM or to Twingle from CiciCRM )
2020-09-29 14:13:55 +02:00
Marc Michalsky forumZFD
ef2cb029f6
add handleDuplicates() function to deactivate duplicates 2020-09-29 14:10:23 +02:00
Marc Michalsky forumZFD
fc515de26d
add exists() function to check if a project exists 2020-09-29 14:09:18 +02:00
Marc Michalsky forumZFD
f1f250e245
comments 2020-09-29 14:08:12 +02:00
Marc Michalsky forumZFD
678dde66a9
fix namespace 2020-09-29 10:42:03 +02:00
Marc Michalsky forumZFD
76efed3530
change copyright owner 2020-09-29 08:59:43 +02:00