clean up
improve method documentation and more
This commit is contained in:
parent
9df3ff4153
commit
88474c10ac
10 changed files with 305 additions and 381 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue