All episodes for a given series. Paginated with 100 results per page.

@param int $id   The id of the series to retrieve.
@param int $page The page to start with (defaults to 1).

@return PaginatedResults An instance of PaginatedResults.
979877
public function getEpisodes(int $id, int $page = 1): PaginatedResults
    {
        /* @var TheTVDbAPILanguageFallback $parent */
        $parent  = $this->parent;
        $closure = $this->getClosureForEpisodes($id, ['query' => ['page' => $page]]);

        return new PaginatedResults(
            $parent->getGenerator()->create($closure, BasicEpisode::class, $this->parent->getAcceptedLanguages(), true),
            $this->parent->getLastLinks()
        );
    }
372580
public function getAll($service, $page = 1, $perPage = 25)
    {
        $params = array(
            'page' => $page,
            'per_page' => $perPage
        );

        return $this->_user->get('account/identity/limit/' . $service, $params);
    }
431687
def get_series_episodes(self, id, page=1):
        """"""
        # perform the request
        params = {'page': page}
        r = self.session.get(self.base_url + '/series/{}/episodes'.format(id), params=params)
        if r.status_code == 404:
            return None
        r.raise_for_status()

        return r.json()
642418
public function forPage(int $page, int $perPage)
    {
        return $this->slice(($page - 1) * $perPage, $perPage);
    }
1108458
public function paginate($collection, $id = null)
    {
        $adapter = $this->adapterFactory->createAdapter($collection);

        $this->totalItems[md5($id)] = $adapter->getTotalResults();
        $offset = $this->calculateOffset($id);

        return $adapter->setOffset($offset)->setLength($this->getItemsPerPage($id));
    }
727433
private function getPagination($page)
    {
        $limit = 5;
        if ($page !== null) {
            if ($page === 'all') {
                $limit = null;
                $page = null;
            } else {
                $page = (int) $page;
            }
        } else {
            $page = 1;
        }

        return ['page' => $page, 'limit' => $limit];
    }
1088238
public function getPagedResults($limit = 50, $page = 0)
    {
        $dql = sprintf(self::DQL_GET_PAGED, AuditEvent::class);
        return $this->getPaginator($dql, $limit, $page);
    }
495742
public function setPage(int $page): Pagination
    {
        $this->current_page = $page;
        $this->calculate();
        return $this;
    }
1280949
public function getById(int $id): Series
    {
        $json = $this->parent->performAPICallWithJsonResponse('get', '/series/'.$id);
        return DataParser::parseData($json, Series::class);
    }
1325919
public function paginate($page, $perPage = null)
    {
        $page = (int)$page;
        if ($page < 1) {
            $page = 1;
        }
        
        if ($perPage === null) {
            if (!$perPage = $this->select->getRawState('limit')) {
                throw new Exception\InvalidArgumentException(
                    "No per page passed and no limit is set"
                );
            }
        }
        
        $modelClass = $this->modelClass;
        $paginator  = new Paginator($this->select, $modelClass::adapter());
        $items      = $paginator->getItems(($page - 1) * $perPage, $perPage);
        $collection = $this->buildCollection($items->toArray());
        
        $collection->setPage($page);
        $collection->setPerPage($perPage);
        $collection->setPaginator($paginator);
        
        return $collection;
    }
157104
public function paginate(int $page = 1, int $perPage = 25) : self
    {
        return $this->limit($perPage, ($page - 1) * $perPage);
    }
214526
public function getEpisodesWithQuery(int $id, array $query): PaginatedResults
    {
        /* @var TheTVDbAPILanguageFallback $parent */
        $parent  = $this->parent;
        $closure = $this->getClosureForEpisodesWithQuery($id, ['query' => $query]);

        return new PaginatedResults(
            $parent->getGenerator()->create($closure, BasicEpisode::class, $this->parent->getAcceptedLanguages(), true),
            $this->parent->getLastLinks()
        );
    }
896165
public function getAll(int $page = 1, int $limit = 25)
    {
        return $this->match(new Criteria([], [], ($page - 1) * $limit, $limit));
    }
437970
public function findById($id)
    {
        foreach ($this->items as $page) {
            if ($page->getId() == $id) {
                return $page;
            } else if ($found = $page->getPages()->findById($id)) {
                return $found;
            }
        }
    }
1163357
public function getAllShowsByPage($page=null){
		if($page == null){
			$url = self::APIURL.'/shows';
		}else{
			$url = self::APIURL.'/shows?page'.$page;
		}

		$shows = $this->getFile($url);

		$relevant_shows = [];
		foreach($shows as $series){
			$TVShow = new TVShow($series);
			$relevant_shows[] = $TVShow;
		}
		return $relevant_shows;
	}
542005
public function getPagedResults($limit = 25, $page = 0)
    {
        $template = self::DQL_ALL;
        $dql = sprintf($template, UserPermission::class, User::class);

        return $this->getPaginator($dql, $limit, $page, []);
    }
723385
public function getRanking(int $page = 1): ?Paginator
    {
        return $this->getPaginator4QueryBuilder(
            $this->gameDataService->getTopAlliance(),
            $this->gameDataService->getCountAlliance(),
            $page
        );
    }