예제 #1
0
 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;
 }
예제 #2
0
/**
 * 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;
	}
}