[TASK] Start working on additional steps logic

This commit is contained in:
Philipp Dieter 2020-07-30 01:18:08 +02:00
parent 33cfcf1abb
commit 3e37d9882c

View File

@ -164,7 +164,7 @@ class ActionController extends BaseController
* *
* @return void * @return void
*/ */
protected function isPOST() protected function isPost()
{ {
if ($this->request->getMethod() == 'POST'){ if ($this->request->getMethod() == 'POST'){
return true; return true;
@ -172,6 +172,28 @@ class ActionController extends BaseController
return false; return false;
} }
/**
* shortcut to get to know if request is submittet via post and specific
* step is set
*
* @return void
*/
protected function isPostStep(
$testStep = null
) {
$step = null;
//if (array_key_exists('step', $this->arguments)){
// $step = $
//}
if (
$this->request->getMethod() == 'POST'
&& $step == $testStep
){
return true;
}
return false;
}
/** /**
* shortcut to get translation * shortcut to get translation
* *