public static function create_array($ids) { $groups = array(); $records = fetch_socialgroupinfo_array($ids); foreach ($records as $record) { $group = new vB_Legacy_SocialGroup(); $group->set_record($record); $groups[] = $group; } return $groups; }
/** * Fetches information regarding a Social Group * * @param integer Group ID * * @return array Group Information * */ function fetch_socialgroupinfo($groupid) { $groups = fetch_socialgroupinfo_array(array($groupid)); if (count($groups)) { return $groups[0]; } else { return null; } }