/** * Rewind the Iterator to the first element * * @link http://php.net/manual/en/iterator.rewind.php * @return void */ public function rewind() { $this->restoreServices(); $db = $this->getDbAdapter(); $platform = $db->getPlatform(); $driver = $db->getDriver(); if ($this->isMultisite()) { $query = $db->query(' SELECT * FROM ' . $platform->quoteIdentifier('_central') . '.' . $platform->quoteIdentifier('fulldomain') . ' WHERE ' . $platform->quoteIdentifier('subdomain') . ' = ' . $driver->formatParameterName('subdomain') . ' '); } else { $query = $db->query(' SELECT * FROM ' . $platform->quoteIdentifier('subdomain') . ' WHERE ' . $platform->quoteIdentifier('subdomain') . ' = ' . $driver->formatParameterName('subdomain') . ' '); } $this->queriedSchemas = array(); $this->queryResult = $query->execute(array('subdomain' => '')); $this->queryResult->rewind(); return $this->createCurrentSiteInfo(); }
/** * Iterator: rewind * * @return void */ public function rewind() { if (!is_array($this->buffer)) { if ($this->dataSource instanceof Iterator) { $this->dataSource->rewind(); } else { reset($this->dataSource); } } $this->position = 0; }
/** * */ function rewind() { return $this->_result->rewind(); }