self::cacheSet($keypart, implode(',', $ids));
}
- $groups = array();
-
- foreach ($ids as $id) {
- $group = User_group::staticGet('id', $id);
- if (!empty($group)) {
- $groups[] = $group;
- }
- }
-
- return new ArrayWrapper($groups);
+ return User_group::multiGet('id', $ids);
}
function isTagged($peopletag)
function staticGet($k,$v=NULL) {
return Memcached_DataObject::staticGet('User_group',$k,$v);
}
+
+ function multiGet($keyCol, $keyVals, $skipNulls=true)
+ {
+ return parent::multiGet('User_group', $keyCol, $keyVals, $skipNulls);
+ }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE