[TASK] Start working on additional steps logic
This commit is contained in:
parent
33cfcf1abb
commit
3e37d9882c
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user