/** * wrapper for deleting a support group. * We will first check if the group really exists, if not than "GROUP_NOT_EXISING" will be returned. * @param $group_id the id of the group we want to delete * @return an array of ticket_user objects that are in the support group. */ public static function deleteSupportGroup($group_id) { //check if group id exists if (self::supportGroup_Exists($group_id)) { $sGroup = new self(); $sGroup->setSGroupId($group_id); $sGroup->delete(); } else { //return that group doesn't exist return "GROUP_NOT_EXISTING"; } }