| 1 | <?php |
||
| 32 | class JsonCruftFilter extends ActionFilter |
||
| 33 | { |
||
| 34 | /** |
||
| 35 | * @var string The curft string which is appended to every json rest response. |
||
| 36 | */ |
||
| 37 | public $cruft = 'throw 1;<dont be evil>'; |
||
| 38 | |||
| 39 | public function getCruftLength() |
||
| 43 | |||
| 44 | public function prependCruft($content) |
||
| 48 | |||
| 49 | public function afterAction($action, $result) |
||
| 57 | } |