/** * Retrieve all entries of one feed * * @param Request $request * @param FeedInterface $feed * @param int $offset_start * @param int $how_many * @return array */ private function listPublicationsEntries(Request $request, FeedInterface $feed, $offset_start = 0, $how_many = 5) { return array_map(function ($entry) use($request) { return $this->listPublicationEntry($request, $entry); }, $feed->getEntries()->slice($offset_start, $how_many)); }
/** * Retrieve all entries of one feed * * @param FeedInterface $feed * @param int $offset_start * @param int $how_many * * @return array */ private function list_publications_entries(Application $app, FeedInterface $feed, $offset_start = 0, $how_many = 5) { return array_map(function ($entry) use($app) { return $this->list_publication_entry($app, $entry); }, $feed->getEntries($offset_start, $how_many)); }
/** * Retrieve all entries of one feed * * @param FeedInterface $feed * @param int $offset_start * @param int $how_many * @return array */ protected function list_publications_entries(FeedInterface $feed, $offset_start = 0, $how_many = 5) { $entries = $feed->getEntries($offset_start, $how_many); $out = []; foreach ($entries as $entry) { $out[] = $this->list_publication_entry($entry); } return $out; }