This repository has been archived on 2019-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
sandpiper/AbstractAction.php

18 lines
323 B
PHP

<?php
abstract class AbstractAction
{
public abstract function handle();
public function param_exists($key) {
return !empty($_GET[$key]);
}
public function get_param($key, $default_value) {
return $_GET[$key] ?? $default_value;
}
public get_post_body() {
return file_get_contents("php://input");
}
}