public function getCollections($requireKey = true) { $collections = array(); foreach ($this->_data['collections'] as $key => $collection) { if (!$requireKey || $requireKey && !empty($collection['lastsynckey'])) { $collection['id'] = $key; $collections[$key] = $collection; } } return $collections; }
/** * Force reset all collection's PINGABLE flag. Used to force client * to issue a non-empty PING request. * */ public function resetPingCache() { $collections = $this->_cache->getCollections(false); foreach ($collections as $id => $collection) { $this->_logger->info(sprintf('UNSETTING collection %s (%s) PINGABLE flag.', $collection['serverid'], $id)); $this->_cache->removePingableCollection($id); } }