Proceeds next drop step.
@return array
@since 0.2
178718
public function nextDrop()
    {
        $drops = $this->countDrops();
        if (count($drops)) {
            $currentStep = Yii::$app->session->get(self::SESSION_KEY, 0);
            $maxStep = Yii::$app->session->get(self::SESSION_STEPS, 0);
            if ($currentStep < $maxStep) {
                $this->type = self::TYPE_ERROR;
                $this->table = '...';

                if (!isset($drops[$currentStep])) {
                    return [
                        'drop' => false,
                        'type' => $this->type,
                        'result' => Yii::t('podium/flash', 'Installation aborted! Can not find the requested drop step.'),
                        'percent' => 100,
                    ];
                }

                $this->table = $drops[$currentStep]['table'];

                $result = $this->dropTable();
                if ($result === true) {
                    Yii::$app->session->set(self::SESSION_KEY, ++$currentStep);
                    return $this->nextDrop();
                }

                Yii::$app->session->set(self::SESSION_KEY, ++$currentStep);
                return [
                    'drop' => true,
                    'type' => $this->type,
                    'result' => $result,
                    'table' => $this->rawTable,
                    'percent' => $this->countPercent($currentStep, $maxStep),
                ];
            }
        }
        Yii::$app->session->set(self::SESSION_KEY, 0);
        return $this->nextStep();
    }
211485
protected function NextItem()
	{
		$keys = array_keys( $this->itemSet );

		while ( $this->elementIndex < count( $keys ) )
		{
			/**
			 * @var array $elements
			 */
			$elements = $this->itemSet[ $keys[ $this->elementIndex ] ];

			while ( $this->index < count( $elements ) )
			{
				/**
				 * @var XPathItem $item
				 */
				$item = $elements[ $this->index++ ] ;

				if ( $item instanceof XPathNavigator )
				{
					/**
					 * @var XPathNavigator $node
					 */
					$node = $item;

					if ( ! is_null( $this->lastNode ) )
					{
						if ( $this->lastNode->IsSamePosition( $node ) )
						{
							continue;
						}
					}
					$this->lastNode = $node->CloneInstance();
				}

				return $item;
			}

			$this->elementIndex++;
			$this->index = 0;
			$this->lastNode = null;
		}
		return null;
	}
116962
public function next() {
		if ($this->currentRecord < count($this->rows)) {
			$row = $this->rows[$this->currentRecord];
			$this->currentRecord++;
			return $row;
		} else {
			return false;
		}
	}
264668
protected function NextItem()
	{
		if ( $this->empty ) return null;

		/**
		 * @var int $index
		 */
		$index = $this->getCurrentPosition() + 1;
		if ( $index < count( $this->buffer ) )
		{
			return $this->buffer[ $index ];
		}
		else if ( ! $this->filled )
		{
			if ( ! $this->src->getIsFinished() )
			{
				if ( $this->src->MoveNext() )
				{
					$current = $this->src->getCurrent();
					$this->buffer[] = $current;
					return $current;
				}
				else
				{
					$this->filled = true;
				}
			}

			if ( ! count( $this->buffer ) )
			{
				$this->empty = true;
			}
		}

		return null;
	}
329865
public static function nextStep($step)
    {
        $steps = self::getSteps();
        $key = self::getStepIndex($step) + 1;
        if (key_exists($key, $steps)) {
            return $steps[$key];
        } else {
            return null;
        }
    }
1361759
static function NextStep($step)
    {
        $keys = array_keys(self::Steps());
        $index = array_search($step, $keys);
        if ($index !== false && $index < count($keys) - 1)
        {
           return $keys[$index + 1];
        }
        return null;
    }
1365125
public function getAllStepsLinear()
    {
        $stepsFound = ArrayList::create();

        $firstStep = DataObject::get_one($this->config()->get('start_step'), "\"SessionID\" = {$this->session->ID}");
        $firstStep->LinkingMode = ($firstStep->ID == $this->getCurrentStep()->ID) ? 'current' : 'link';
        $firstStep->setForm($this);
        $stepsFound->push($firstStep);

        // mark the further steps as non-completed if the first step is the current
        if ($firstStep->ID == $this->getCurrentStep()->ID) {
            $this->currentStepHasBeenFound = true;
        } else {
            $firstStep->addExtraClass('completed');
        }

        $this->getAllStepsRecursive($firstStep, $stepsFound);

        return $stepsFound;
    }
644825
public function getNext($step = 1) {
      $position = ($this->position + $step);
      return isset($this->items[$position]) ? $this->items[$position] : null;
    }
23547
protected function NextItem()
	{
		if ( $this->used ) $this->iterator->next();
		$this->used = true;
		return $this->iterator->current(); // getCurrent();
	}
1193903
public function next()
    {
        if ($this->limit && $this->currentPos >= $this->limit) { // it won't go further than the selected limit
            return null;
        }
        $oldLimit = $this->limit;
        $oldOffset = $this->offset;
        $this->limit = 1;
        $this->offset += $this->currentPos;
        $rows = $this->get();
        $this->limit = $oldLimit;
        $this->offset = $oldOffset;
        $this->currentPos++;
        return isset($rows[0]) ? $rows[0] : null;
    }
471220
public function getSteps()
    {
        return array_unique(
            array_map(
                function (Snippet $snippet) {
                    return $snippet->getStep();
                },
                $this->snippets
            ),
            SORT_REGULAR
        );
    }
752229
public function get_steps() {
        if (empty($this->steps)) {
            $this->steps = helper::get_steps($this->id);
        }

        return $this->steps;
    }
16528
public function next()
    {
        $this->current = $this->hydrator->hydrateRow();
        $this->key++;

        return $this->current;
    }
993636
function MoveNext()
	{
		if (!$this->EOF) {
			$this->_currentRow++;
			if ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) {
				$this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode);

				if (is_array($this->fields)) {
					if ($this->fields && isset($this->_blobArr)) $this->_fixblobs();
					return true;
				}
			}
			$this->fields = false;
			$this->EOF = true;
		}
		return false;
	}
533660
protected function getNext()
    {
        if (!$this->current)
        {
            return null;
        }
        if ($this->next !== -1)
        {
            return $this->next;
        }
        $this->load();
        for ($i = 0; $i < count($this->items); $i++)
        {
            if ($this->items[$i]->id == $this->current->id)
            {
                if ($i + 1 < count($this->items))
                {
                    $this->next = $this->items[$i + 1];
                    return $this->next;
                }
                break;
            }
        }
        return null;
    }
1249432
public function next()
    {
        if(!$this->initiated)
        {
            reset($this->callables);

            $this->initiated = true;

            return call_user_func_array(current($this->callables), func_get_args());
        }

        return call_user_func_array(next($this->callables), func_get_args());
    }
66007
public function items() {
        if ( $this->_max <= 1 ) {
            return [];
        }
        $end = min( $this->_max, $this->_current + floor( $this->count / 2 ) );
        $start = max( 1, $end - $this->count + 1 );
        $items = [];
        if ( $start != 1 ) {
            $items[] = $this->item( $this->label_to_start, 1);
        }
        for ( $i = $start; $i <= $end; $i ++ ) {
            $items[] = $this->item( $i, $i, ($i == $this->_current) );
        }
        if ( $this->_current != $this->_max ) {
            $items[] = $this->item( $this->label_next, ($this->_current + 1) );
        }
        return $items;
    }