protected function reformRun($componentInfo, $model, $log, $view)
    {
        if ($this->module->userComponent !== true) {
            $this->info($componentInfo);
            return $this->module->goPodium();
        }

        if ($model->load(Yii::$app->request->post())) {
            list($error, $message, $back) = $model->run();
            if ($error) {
                Log::error($log['error'], !empty($model->user->id) ? $model->user->id : null, $log['method']);
                if (!empty($message)) {
                    $this->error($message);
                }
            } else {
                Log::info($log['info'], $model->user->id, $log['method']);
                if (!empty($message)) {
                    $this->success($message);
                }
            }
            if ($back) {
                return $this->module->goPodium();
            }
        }
        return $this->render($view, ['model' => $model]);
    }
protected function reformRun($componentInfo, $model, $log, $view)
    {
        if ($this->module->userComponent !== true) {
            $this->info($componentInfo);
            return $this->module->goPodium();
        }

        if ($model->load(Yii::$app->request->post())) {
            list($error, $message, $back) = $model->run();
            if ($error) {
                Log::error($log['error'], !empty($model->user->id) ? $model->user->id : null, $log['method']);
                if (!empty($message)) {
                    $this->error($message);
                }
            } else {
                Log::info($log['info'], $model->user->id, $log['method']);
                if (!empty($message)) {
                    $this->success($message);
                }
            }
            if ($back) {
                return $this->module->goPodium();
            }
        }
        return $this->render($view, ['model' => $model]);
    }
protected function reformRun ( $ componentInfo , $ model , $ log , $ view ) { if ( $ this -> module -> userComponent !== true ) { $ this -> info ( $ componentInfo ) ; return $ this -> module -> goPodium ( ) ; } if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) ) { list ( $ error , $ message , $ back ) = $ model -> run ( ) ; if ( $ error ) { Log :: error ( $ log [ 'error' ] , ! empty ( $ model -> user -> id ) ? $ model -> user -> id : null , $ log [ 'method' ] ) ; if ( ! empty ( $ message ) ) { $ this -> error ( $ message ) ; } } else { Log :: info ( $ log [ 'info' ] , $ model -> user -> id , $ log [ 'method' ] ) ; if ( ! empty ( $ message ) ) { $ this -> success ( $ message ) ; } } if ( $ back ) { return $ this -> module -> goPodium ( ) ; } } return $ this -> render ( $ view , [ 'model' => $ model ] ) ; }
Runs actions processed with email.
@param string $componentInfo
@param ReactivateForm|ResetForm $model
@param array $log
@return string|Response
@since 0.6
Runs actions processed with email .