mirror of
https://github.com/openvk/chandler.git
synced 2025-02-02 04:25:25 +03:00
Add SimplePresenter::requestParam
Behaves like queryParam, but uses _REQUEST variable instead.
This commit is contained in:
parent
55515de8b6
commit
9606b74aed
1 changed files with 5 additions and 0 deletions
|
@ -174,6 +174,11 @@ abstract class SimplePresenter implements IPresenter
|
|||
return $_POST[$index] ?? NULL;
|
||||
}
|
||||
|
||||
protected function requestParam(string $index): ?string
|
||||
{
|
||||
return $_REQUEST[$index];
|
||||
}
|
||||
|
||||
protected function checkbox(string $name): bool
|
||||
{
|
||||
return ($this->postParam($name) ?? "off") === "on";
|
||||
|
|
Loading…
Reference in a new issue