NullAction.class.php 293 B

12345678910111213
  1. <?php
  2. class NullAction implements IAction {
  3. private $action;
  4. public function __construct($action) {
  5. $this->attemptedAction = $action;
  6. }
  7. public function execute() {
  8. header("HTTP/1.0 404 Not Found");
  9. return array("error" => "API action '".$this->attemptedAction."' not found.");
  10. }
  11. }