public function previous($limit = null) { $limit = is_null($limit) ? $this->_limit : $limit; $data = PersonalizedStream::getTimelineStream($this->_core, $this->_resource, $limit, $this->_cursorTime, null); $cursor = $data->{"meta"}->{"cursor"}; $this->_previous = $cursor->{"hasPrev"}; $this->_next = $cursor->{"prev"} !== null; $this->_cursorTime = $cursor->{"prev"}; return $data; }
public function previous() { $resp = PersonalizedStream::getTimelineStream($this, false); $cursor = $resp->{"meta"}->{"cursor"}; $data = $this->getData(); $data->setPrevious($cursor->{"hasPrev"}); $data->setNext($cursor->{"prev"} !== null); if ($data->isNext()) { $data->setCursorTime($cursor->{"prev"}); } return $resp; }