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