Implements \Iterator::rewind().

Resets the counter, timeout, and limit.
185787
public function rewind()
    {
        $this->_count = 0;

        $timeout = $this->_agent->getTimeout();
        if ($timeout != CollectionAgentAbstract::NO_LIMIT) {
            $this->_expiry = $timeout + time();
        } else {
            // Pay homage to the Unix time apocalypse.
            // @see http://en.wikipedia.org/wiki/Year_2038_problem
            $this->_expiry = 2147483647;
        }
    }
604173
public function rewind()
    {
        if ($this->_index < 0) {
            $this->_row = $this->_statement->fetch();
            $this->_index = 0;
        } else {
            throw new \LogicException('DataReader cannot rewind. It is a forward-only reader.');
        }
    }
1328079
public function rewind()
    {
        $uri = $this->xmlFileUri;

        if ($this->options["utf8Filter"]) {
            $uri = "php://filter/read=xmlutf8/resource=" . $uri;
        }

        if (!$this->reader
            ->open(
                $uri,
                $this->options["encoding"],
                $this->options["readerOptions"]
            )
        ) {
            throw new \Exception("$this->xmlFileUri cannot be opened");
        }

        // move to the first element
        while ($this->reader->read() && $this->reader->name !== $this->delimiterTagName) {
            // intentionally empty
        }
    }
771192
public function rewind()
    {
        if (!$this->rewindable && !$this->firstCross) {
            throw new \Exception('Unable to traverse not rewindable iterator multiple time');
        }
        $this->firstCross = false;
        $this->position = 0;
    }
411745
public function rewind()
    {
        $this->recurIterator->rewind();
        // re-creating overridden event index.
        $index = [];
        foreach ($this->overriddenEvents as $key => $event) {
            $stamp = $event->DTSTART->getDateTime($this->timeZone)->getTimeStamp();
            $index[$stamp][] = $key;
        }
        krsort($index);
        $this->counter = 0;
        $this->overriddenEventsIndex = $index;
        $this->currentOverriddenEvent = null;

        $this->nextDate = null;
        $this->currentDate = clone $this->startDate;

        $this->next();
    }
559988
public function rewind()
    {
        // reset item position
        $this->_itemPosition = 0;

        // reset internal pointer
        reset($this->_items);

        if ($this->countItems() > 0) {
            $this->_itemValid = true;
        } else {
            $this->_itemValid = false;
        }
    }
929563
public function rewind()
    {
        $cursor = $this;
        $this->retry(function() use ($cursor) {
            $cursor->getRiakCursor()->rewind();
        }, false);
    }
1273995
public function rewind()
    {
        $this->_itemValid = true;

        if (!end($this->_items)) {
            $this->_itemValid = false;
        } else {
            if (($countItems = $this->countItems()) > 0) {
                $this->_itemPosition = $countItems - 1;
            } else {
                $this->_itemPosition = 0;
            }
        }
    }
689296
public function rewind()
    {
        $keys = array_keys($this->items);

        $this->currentKey = !empty($keys) ? reset($keys) : null;
    }
463675
public function rewind(){
		try{
			$count = count($this);
		} catch(DriverException $e){
			$count = -1;
		}
		if($this->row !== null && $count > 0){
			try{
				$this->seek(0);
			} catch(DriverException $e){
				$clone = clone $this->result;
				$this->result->__destruct();
				$this->result = $clone;
				$this->pointer = 0;
				$this->row = $this->result->fetch();
			}
		} else{
			$this->pointer = 0;
			$this->row = $this->result->fetch();
		}
	}
1011593
public function rewind()
    {
        $this->getIteratorObject()->last();

        if ($this->getIteratorObject()->valid()) {
            if (($countItems = $this->countItems()) > 0) {
                $this->_itemPosition = $countItems - 1;
            } else {
                $this->_itemPosition = 0;
            }
        }
    }
155071
public function rewind()
    {
        if ($this->cacheEntriesIterator !== null) {
            $this->cacheEntriesIterator->rewind();
            return;
        }

        $cacheEntries = [];

        $statementHandle = $this->databaseHandle->prepare('SELECT "identifier", "content" FROM "' . $this->cacheTableName . '" WHERE "context"=? AND "cache"=?' . $this->getNotExpiredStatement());
        $statementHandle->execute([$this->context(), $this->cacheIdentifier]);
        $fetchedColumns = $statementHandle->fetchAll();

        foreach ($fetchedColumns as $fetchedColumn) {
            // Convert hexadecimal data into binary string,
            // because it is not allowed to store null bytes in PostgreSQL.
            if ($this->pdoDriver === 'pgsql') {
                $fetchedColumn['content'] = hex2bin($fetchedColumn['content']);
            }

            $cacheEntries[$fetchedColumn['identifier']] = $fetchedColumn['content'];
        }

        $this->cacheEntriesIterator = new \ArrayIterator($cacheEntries);
    }
340538
public function rewind()
    {
        if ($this->step === 0) {
            return;
        }

        $this->stack = [];
        $this->stackType = [];
        $this->valueStack = [];
        $this->errors = [];
        $this->newLine = false;
        $this->first = true;
        $this->line = 1;
        $this->column = 1;
        $this->step = 0;

        $this->processValue($this->initialValue);
    }
56209
public function rewind()
    {
        if ($this->dataObject)
            $this->current = $this->dataObject->fetch($this->style);
    }
877587
public function resetTimer()
    {
        if (empty($this->timer) === true) {
            $this->timer = time() + $this->maxRuntime;
        }
    }
383949
public function rewind() : void
	{
		if (! \is_resource($this->resource))
		{
			throw new Exception\UnseekableStreamException('Stream is not resourceable');
		}

		if (! $this->isSeekable())
		{
			throw new Exception\UnseekableStreamException('Stream is not seekable');
		}

		$result = \fseek($this->resource, 0, \SEEK_SET);

		if (! (0 === $result))
		{
			throw new Exception\UnseekableStreamException('Unable to move the stream pointer to beginning');
		}
	}
140672
public function reset()
    {
        $this->header = null;
        $this->line   = 0;
        $this->file->rewind();

        return $this;
    }