one value will be created. * @param string|int $group_key the group_key used for groups in Project Settings * @param string|int $group_id the group id used for the group profile * @param string $prop the property that holds the list * @param string|array $val items to add to the list * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the group profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time */ public function union($group_key, $group_id, $prop, $val, $ignore_time = false) { $payload = $this->_constructPayload($group_key, $group_id, '$union', array("$prop" => $val), $ignore_time); $this->enqueue($payload); } /** * Delete this group profile from Mixpanel * @param string|int $group_key the group_key used for groups in Project Settings * @param string|int $group_id the group id used for the group profile * @param boolean $ignore_time If the $ignore_time property is true, Mixpanel will not automatically update the "Last Seen" property of the profile. Otherwise, Mixpanel will add a "Last Seen" property associated with the current time */ public function deleteGroup($group_key, $group_id, $ignore_time = false) { $payload = $this->_constructPayload($group_key, $group_id, '$delete', "", $ignore_time); $this->enqueue($payload); } /** * Returns the "groups" endpoint * @return string */ function _getEndpoint() { return $this->_options['groups_endpoint']; } }