1 | <?php |
||
33 | class AjaxFilter extends ActionFilter |
||
34 | { |
||
35 | /** |
||
36 | * @var string the message to be displayed when request isn't ajax |
||
37 | */ |
||
38 | public $errorMessage = 'Request must be XMLHttpRequest.'; |
||
39 | /** |
||
40 | * @var Request the current request. If not set, the `request` application component will be used. |
||
41 | */ |
||
42 | public $request; |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | 1 | public function init() |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 1 | public function beforeAction($action) |
|
65 | } |