/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+ function multiGet($kc, $kvs, $skipNulls=true)
+ {
+ return Memcached_DataObject::multiGet('Notice', $kc, $kvs, $skipNulls);
+ }
+
/* Notice types */
const LOCAL_PUBLIC = 1;
const REMOTE = 0;
} else {
$idstr = $cache->get(Cache::key('notice:repeats:'.$this->id));
if ($idstr !== false) {
- $ids = explode(',', $idstr);
+ if (empty($idstr)) {
+ $ids = array();
+ } else {
+ $ids = explode(',', $idstr);
+ }
} else {
$ids = $this->_repeatStreamDirect(100);
$cache->set(Cache::key('notice:repeats:'.$this->id), implode(',', $ids));
$notice->limit(0, $limit);
}
- $ids = array();
-
- if ($notice->find()) {
- while ($notice->fetch()) {
- $ids[] = $notice->id;
- }
- }
-
- $notice->free();
- $notice = NULL;
-
- return $ids;
+ return $notice->fetchAll('id');
}
function locationOptions($lat, $lon, $location_id, $location_ns, $profile = null)