+ $this->log->info('Finished updating %d entries.', $items);
+ }
+
+ public function updateSome($urlOrIds)
+ {
+ $options = array();
+ foreach ($urlOrIds as $urlOrId) {
+ if (is_numeric($urlOrId)) {
+ $options[] = 'fe_id = ' . intval($urlOrId);
+ } else {
+ $options[] = 'fe_url = ' . $this->db->quote($urlOrId);
+ }
+ }
+
+ $this->log->info('Updating %d feed entries..', count($options));
+ $res = $this->db->query(
+ 'SELECT * FROM feedentries'
+ . ' WHERE ' . $this->sqlNeedsUpdate()
+ . ' AND (' . implode(' OR ', $options) . ')'
+ );
+
+ $items = 0;
+ while ($entryRow = $res->fetch(\PDO::FETCH_OBJ)) {
+ ++$items;
+ $this->updateEntry($entryRow);
+ }
+ $this->log->info('Finished updating %d entries.', $items);