src/base/Controller.php
public function runActions($actions)
    {
        foreach ($this->normalizeTasks($actions) as $action => $enabled) {
            if ($enabled) {
                $res = $this->runAction($action);
                if (!Helper::isResponseOk($res)) {
                    return $res;
                }
            }
        }

        return 0;
    }
public function runActions($actions)
    {
        foreach ($this->normalizeTasks($actions) as $action => $enabled) {
            if ($enabled) {
                $res = $this->runAction($action);
                if (!Helper::isResponseOk($res)) {
                    return $res;
                }
            }
        }

        return 0;
    }
public function runActions ( $ actions ) { foreach ( $ this -> normalizeTasks ( $ actions ) as $ action => $ enabled ) { if ( $ enabled ) { $ res = $ this -> runAction ( $ action ) ; if ( ! Helper :: isResponseOk ( $ res ) ) { return $ res ; } } } return 0 ; }
Runs list of actions.
@param null|string|array $actions
@return int|Response exit code
Runs list of actions .