remove $origin parameter

it isn't necessary anymore because I use my own APIs to get the data always in the Twingle format
This commit is contained in:
Marc Michalsky forumZFD 2020-12-15 14:49:31 +01:00
parent f10b920465
commit a9ebd8c514
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 11 additions and 40 deletions

View file

@ -13,15 +13,12 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
* Result array of Twingle API call to
* https://project.twingle.de/api/by-organisation/$organisation_id
*
* @param string $origin
* Origin of the arrays. It can be one of two constants:
* TwingleProject::TWINGLE|CIVICRM
* @param int|null $id
*
* @throws \Exception
*/
function __construct(array $project, string $origin, int $id = NULL) {
parent::__construct($project, $origin);
function __construct(array $project, int $id = NULL) {
parent::__construct($project);
$this->id = $id;
$this->prefix = 'twingle_project_';
@ -58,10 +55,7 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
// Instantiate TwingleProject
try {
$project = new self(
$values,
self::TWINGLE
);
$project = new self($values);
} catch (Exception $e) {
$errorMessage = $e->getMessage();