| 1 | <?php namespace Arcanedev\Support\Bases; |
||
| 11 | abstract class Controller extends \Arcanedev\Support\Http\Controller |
||
| 12 | { |
||
| 13 | /* ----------------------------------------------------------------- |
||
| 14 | | Check Functions |
||
| 15 | | ----------------------------------------------------------------- |
||
| 16 | */ |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Check if the Request is an ajax Request. |
||
| 20 | * |
||
| 21 | * @deprecated |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | protected static function isAjaxRequest() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Accepts only ajax request. |
||
| 32 | * |
||
| 33 | * @deprecated Use the `ajax` middleware instead. |
||
| 34 | * |
||
| 35 | * @param string $message |
||
| 36 | * @param array $headers |
||
| 37 | */ |
||
| 38 | protected static function onlyAjax($message = 'Access denied !', array $headers = []) |
||
| 44 | } |
||
| 45 |
This method has been deprecated.