public function getNextStepFromDatabase()
    {
        if ($this->SessionID && is_numeric($this->SessionID)) {
            $nextSteps = $this->config()->get('next_steps');

            if (is_string($nextSteps)) {
                return DataObject::get_one($nextSteps, "\"SessionID\" = {$this->SessionID}");
            } elseif (is_array($nextSteps)) {
                return DataObject::get_one($nextSteps[0], "\"SessionID\" = {$this->SessionID}");
            } else {
                return false;
            }
        }
    }
public function getNextStepFromDatabase()
    {
        if ($this->SessionID && is_numeric($this->SessionID)) {
            $nextSteps = $this->config()->get('next_steps');

            if (is_string($nextSteps)) {
                return DataObject::get_one($nextSteps, "\"SessionID\" = {$this->SessionID}");
            } elseif (is_array($nextSteps)) {
                return DataObject::get_one($nextSteps[0], "\"SessionID\" = {$this->SessionID}");
            } else {
                return false;
            }
        }
    }
public function getNextStepFromDatabase ( ) { if ( $ this -> SessionID && is_numeric ( $ this -> SessionID ) ) { $ nextSteps = $ this -> config ( ) -> get ( 'next_steps' ) ; if ( is_string ( $ nextSteps ) ) { return DataObject :: get_one ( $ nextSteps , "\"SessionID\" = {$this->SessionID}" ) ; } elseif ( is_array ( $ nextSteps ) ) { return DataObject :: get_one ( $ nextSteps [ 0 ] , "\"SessionID\" = {$this->SessionID}" ) ; } else { return false ; } } }
Returns the next step to the current step in the database.

This will only return something if you've previously visited
the step ahead of the current step, and then gone back a step.

@return MultiFormStep|boolean|void
Returns the next step to the current step in the database .