getEntryOwnerGroups( (int) $entry_id = 0 )
Description
Gets all the groups that are associated with a given entry, or if no entry is specified then returns all the groups that are associated with entries in the form.
Parameters
$entry_id - Optional. An entry id number.
Return Values
Returns an array of distinct group ids. Returns false if the query failed.
Examples
// Get all the groups associated with entry 44 in form 6
$form_id = 6;
$dataHandler = new formulizeDataHandler($form_id);
$group_ids = $dataHandler->getEntryOwnerGroups(44);
// Get all the groups associated with any entry in form 6
$form_id = 6;
$dataHandler = new formulizeDataHandler($form_id);
$group_ids = $dataHandler->getEntryOwnerGroups();