called by the ExecuteStep Method - place any logic for the standard proccessing of this step here
return false if any errors occure (returns the user to the current step for corrections).

@return bool
546788
protected function ProcessStep()
    {
        $bContinue = parent::ProcessStep();
        $oMsgManager = TCMSMessageManager::GetInstance();

        // we may continue only if a shipping group and payment method is set
        if ($bContinue && is_null($this->oActiveShippingGroup)) {
            $oMsgManager->AddMessage(self::MSG_SHIPPING_GROUP, 'ERROR-BASKET-NO-SHIPPING-GROUP');
            $bContinue = false;
        }
        if ($bContinue && is_null($this->oActivePaymentMethod)) {
            $oMsgManager->AddMessage(self::MSG_PAYMENT_METHOD, 'ERROR-BASKET-NO-PAYMENT-METHOD');
            $bContinue = false;
        }

        $oPaymentHandler = null;
        if ($bContinue) {
            // check payment method data
            $oPaymentHandler = &$this->oActivePaymentMethod->GetFieldShopPaymentHandler();
            $bContinue = $oPaymentHandler->ValidateUserInput();
        }

        if ($bContinue) {
            // set payment method and shipping group in basket
            $oBasket = TShopBasket::GetInstance();
            $oBasket->SetActiveShippingGroup($this->oActiveShippingGroup);
            $oBasket->SetActivePaymentMethod($this->oActivePaymentMethod);
            $oBasket->RecalculateBasket();
            $bContinue = $this->postSelectPaymentHook();

            // if things fail here, we need to redirect to the active step to clear our parameter list - and refresh the payment list
            if (false === $bContinue) {
                $this->JumpToStep($this);
            }
        }

        return $bContinue;
    }
1048262
public function isAbsolutePathReference():bool{
		return $this->getScheme() === '' && $this->getAuthority() === '' && isset($this->getPath()[0]) && $this->getPath()[0] === '/';
	}
996733
protected function execute_condition() {

        // No grades on the front page.
        if ($this->get_courseid() == SITEID) {
            return false;
        }

        return plugin_supports('mod', $this->get_task()->get_modulename(), FEATURE_ADVANCED_GRADING, false);
    }
782510
public function init()
    {
        // If the step is not a registered step exit
        if (!in_array($this->step, CheckoutSteps::getSteps())) {
            $this->redirect($this->Link('/'));
        }

        // If no ReservationSession exists redirect back to the base event controller
        elseif (empty(ReservationSession::get())) {
            $this->redirect($this->Link('/'));
        }

        // If the reservation has been processed end the session and redirect
        elseif (ReservationSession::get()->Status === 'PAID' && $this->step != 'success') {
            ReservationSession::end();
            $this->redirect($this->Link('/'));
        } else {
            $this->reservation = ReservationSession::get();
            parent::init();
        }
    }
1101070
public function onExecuteStep()
    {
        /*
         * Address timeout limits
         */
        @set_time_limit(3600);

        $manager = UpdateManager::instance();
        $stepCode = post('code');

        switch ($stepCode) {
            case 'downloadCore':
                $manager->downloadCore(post('hash'));
                break;

            case 'extractCore':
                $manager->extractCore();
                break;

            case 'setBuild':
                $manager->setBuild(post('build'), post('hash'));
                break;

            case 'downloadPlugin':
                $manager->downloadPlugin(post('name'), post('hash'), post('install'));
                break;

            case 'downloadTheme':
                $manager->downloadTheme(post('name'), post('hash'));
                break;

            case 'extractPlugin':
                $manager->extractPlugin(post('name'), post('hash'));
                break;

            case 'extractTheme':
                $manager->extractTheme(post('name'), post('hash'));
                break;

            case 'completeUpdate':
                $manager->update();
                Flash::success(Lang::get('system::lang.updates.update_success'));
                return Redirect::refresh();

            case 'completeInstall':
                $manager->update();
                Flash::success(Lang::get('system::lang.install.install_success'));
                return Redirect::refresh();
        }
    }
553736
function commit()
    {
        if ($this->transaction_level > 0){
            $this->transaction_level--;
            if ($this->transaction_level == 0){
                return parent::commit();
            }
            return true;
        }
        return false;
    }
990633
public function previousStep($step = null)
    {
        $steps = $this->getStepsArray();
        $key = array_search($step, $steps);

        if (is_int($key) && $key > 0) {
            return $steps[$key-1];
        }

        return false;
    }
502164
public function ExecuteStep()
    {
        if ($this->ProcessStep()) {
            $this->ProcessStepSuccessHook();
            $oBasket = TShopBasket::GetInstance();
            $oBasket->aCompletedOrderStepList[$this->fieldSystemname] = true;
            $oNextStep = $this->GetNextStep();
            $this->JumpToStep($oNextStep);
        }
    }
539792
protected function performStep()
    {
        $scopes = [];

        foreach ($this->reflection()->getMethods() as $method) {

            if ( ! starts_with($method->name, 'scope') || ! $this->isScopeMethodUsable($method)) {
                continue;
            }

            $scopeName = camel_case(substr($method->name, 5));

            // Store the scope name without the scope prefix
            $scopes[ $scopeName ] = new ModelScopeData([
                'method'   => $scopeName,
                'label'    => null,
                'strategy' => null,
            ]);
        }

        $this->info->list->scopes = $scopes;
    }
151384
public function runStepActions()
    {
        $step = $this->getCurrentStep();

        foreach ($step->getActions() as $action) {
            $action = $this->getAction($action);

            if (false == $action->run($this->getModel())) {

                return false;
            }
        }

        return true;
    }
1234874
public function commit()
    {
        $return = true;
        $opcount = $this->nestedTransactionCount;

        if ($opcount > 0) {
            if ($opcount === 1) {
                if ($this->isUncommitable) {
                    throw new PropelException('Cannot commit because a nested transaction was rolled back');
                } else {
                    $return = parent::commit();
                    if ($this->useDebug) {
                        $this->log('Commit transaction', null, __METHOD__);
                    }
                }
            }

            $this->nestedTransactionCount--;
        }

        return $return;
    }
1362456
public function getNextStep()
    {
        $nextSteps = $this->config()->get('next_steps');

        // Check if next_steps have been implemented properly if not the final step
        if (!$this->isFinalStep()) {
            if (!isset($nextSteps)) {
                user_error(
                    'MultiFormStep->getNextStep(): Please define at least one $next_steps on '
                    . static::class,
                    E_USER_ERROR
                );
            }
        }

        if (is_string($nextSteps)) {
            return $nextSteps;
        } elseif (is_array($nextSteps) && count($nextSteps)) {
            // custom flow control goes here
            return $nextSteps[0];
        } else {
            return false;
        }
    }
993654
public function getStepIncrement()
    {
        switch ($this->step) {
            case self::$YEARLY:
                return '+1 year';
                break;
            case self::$MONTHLY:
                return '+1 month';
                break;
            case self::$DAILY:
                return '+1 day';
                break;
            case self::$HOURLY:
                return '+1 hour';
                break;
        }
    }
599935
protected function performStep()
    {
        // Detect whether the model is translated; if not, skip this step
        if ( ! $this->modelHasTrait($this->getTranslatableTraits())) {
            return;
        }

        // Model is translated using translatable
        $this->info->translated           = true;
        $this->info->translation_strategy = 'translatable';

        $this->addIncludesDefault('translations');

        $this->updateAttributesWithTranslated();
    }
18201
protected function ProcessStep()
    {
        $bContinue = parent::ProcessStep();
        if ($bContinue) {
            $aInput = TGlobal::instance()->GetUserData('aInput');
            if (!is_array($aInput)) {
                $aInput = array();
            }
            $sCardId = false;
            $sWrappId = false;
            $aArticleIds = false;
            if (array_key_exists('shop_wrapping_id', $aInput) && !empty($aInput['shop_wrapping_id'])) {
                $sWrappId = $aInput['shop_wrapping_id'];
            }
            if (array_key_exists('shop_wrapping_card_id', $aInput) && !empty($aInput['shop_wrapping_card_id'])) {
                $sCardId = $aInput['shop_wrapping_card_id'];
            }
            if (array_key_exists('shop_article_id', $aInput)) {
                if (is_array($aInput['shop_article_id'])) {
                    $aArticleIds = $aInput['shop_article_id'];
                } elseif (!empty($aInput['shop_article_id'])) {
                    $aArticleIds = array($aInput['shop_article_id']);
                }
            }

            $oBasket = TShopBasket::GetInstance();
            if ($sWrappId) {
                $oBasket->AddWrapping($sWrappId, $aArticleIds);
            }
            if ($sCardId) {
                $oBasket->AddWrappingCard($sCardId, $aArticleIds);
            }
        }
        if ($bContinue) {
            $sNextStep = TGlobal::instance()->GetUserData('nextStep');
            if (!empty($sNextStep)) {
                $oStep = TdbShopOrderStep::GetStep($sNextStep);
                $this->JumpToStep($oStep);
            }
        }

        return $bContinue;
    }
467834
public function execute()
    {
        $curdir = getcwd();
        chdir($this->phpci->buildPath);

        $behat = $this->executable;

        if (!$behat) {
            $this->phpci->logFailure(Lang::get('could_not_find', 'behat'));

            return false;
        }

        $success = $this->phpci->executeCommand($behat . ' %s', $this->features);
        chdir($curdir);

        list($errorCount, $data) = $this->parseBehatOutput();

        $this->build->storeMeta('behat-warnings', $errorCount);
        $this->build->storeMeta('behat-data', $data);

        return $success;
    }
911182
function nextStep()
    {
        if ( $this->metaData( 'current_stage' ) == eZWizardBase::STAGE_PRE )
        {
            $this->setMetaData( 'current_stage', eZWizardBase::STAGE_POST );
        }
        else
        {
            $this->setMetaData( 'current_stage', eZWizardBase::STAGE_PRE );
            $this->setMetaData( 'current_step', $this->metaData( 'current_step' ) + 1 );

            return $this->Module->redirectTo( $this->WizardURL );
        }

        $this->savePersistentData();
    }