Civicrm Api PHP helperclass