improve method documentation and more
This commit is contained in:
Marc Michalsky forumZFD 2021-02-01 14:33:03 +01:00
parent 9df3ff4153
commit 88474c10ac
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
10 changed files with 305 additions and 381 deletions

View file

@ -143,8 +143,15 @@ function civicrm_api3_twingle_event_Get(array $params): array {
}
}
try {
TwingleEvent::translateKeys($returnValues[$event['id']], TwingleEvent::OUT);
TwingleEvent::formatValues($returnValues[$event['id']], TwingleEvent::OUT);
$tmp_event = new TwingleEvent([]);
$tmp_event->translateKeys(
$returnValues[$event['id']],
TwingleEvent::OUT
);
TwingleEvent::formatValues(
$returnValues[$event['id']],
TwingleEvent::OUT
);
}
catch (Exception $e) {
throw new CiviCRM_API3_Exception($e->getMessage());