mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-09 14:12:13 +00:00
6213f2fb75
- Optimised Input-classes. - `get` and `getObject` methods on `Input` now supports filtering on multiple method-types when using the `$method` parameter. - Input classes now know how to parse that stupid nested $_FILES array. - It's now possible to change method-names on ResourceControllers. - Removed `getValue` and `setValue` from `InputFile` classes. - Ensured that request-method are only parsed from $_POST or $_SERVER. - Fixed minor parameter-issues with subdomain routing. - Added PHPDocs. - Added even more unit-tests. - Many small optimisations tweaks.
47 lines
650 B
PHP
47 lines
650 B
PHP
<?php
|
|
namespace Pecee\Controllers;
|
|
|
|
interface IRestController
|
|
{
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function index();
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function show($id);
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function store();
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function create();
|
|
|
|
/**
|
|
* View
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function edit($id);
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function update($id);
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
public function destroy($id);
|
|
|
|
} |