protected function initRequest() { parent::initRequest(); if ($limit = $this->getOption('limit')) { $this->addFilter('max-results', $limit); } $start = $this->getOption('start'); if (strlen($start)) { $this->addFilter('start-index', $this->getOption('start') + 1); } }
protected function initRequest() { parent::initRequest(); if ($limit = $this->getOption('limit')) { $this->addFilter('per_page', $limit); } $start = $this->getOption('start'); if (strlen($start)) { $start = $start / $limit; $this->addFilter('page', $start + 1); } }