- <?php
- class NullAction implements IAction {
- private $action;
- public function __construct($action) {
- $this->attemptedAction = $action;
- }
- public function execute() {
- header("HTTP/1.0 404 Not Found");
- return array("error" => "API action '".$this->attemptedAction."' not found.");
- }
- }
|