private function fillFeedHandle($row, FeedHandle $feed) { $dirty = false; if ($feed->getURL() === null) { $feed->setURL($row->df_url); } else { if ($feed->getURL() != $row->df_url) { $dirty = true; } } if ($row->df_o_url !== null && $row->df_o_url !== '') { $feed->setOURL($row->df_o_url); } if ($feed->getInterval() === null) { $feed->setInterval($row->df_interval); } else { if ($feed->getInterval() != $row->df_interval) { $dirty = true; } } if ($row->df_o_interval !== null) { $feed->setOInterval($row->df_o_interval); } if ($row->df_key !== null) { $feed->setKey($row->df_key); } if ($row->df_key_parameter !== null) { $feed->setKeyParameter($row->df_key_parameter); } if ($row->df_o_pagination_policy !== null) { $feed->setOPaginationPolicy($row->df_o_pagination_policy); } if ($feed->getPaginationPolicy() === null) { $feed->setPaginationPolicy($row->df_pagination_policy); } else { if ($feed->getPaginationPolicy() != $row->df_pagination_policy) { $dirty = true; } } $feed->setCreated($row->df_created); return $dirty ? self::LOAD_RESULT_DIRTY : self::LOAD_RESULT_CLEAN; }