| @@ 143-151 (lines=9) @@ | ||
| 140 | * |
|
| 141 | * @return Jaxon\Response\Response the Jaxon response |
|
| 142 | */ |
|
| 143 | public function onBefore(&$bEndRequest) |
|
| 144 | { |
|
| 145 | // Call the user defined callback |
|
| 146 | if(($xCallback = $this->xCallbackManager->before())) |
|
| 147 | { |
|
| 148 | call_user_func_array($xCallback, [$this->xTargetRequestPlugin->getTarget(), &$bEndRequest]); |
|
| 149 | } |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * This is the post-request processing callback passed to the Jaxon library. |
|
| 154 | * |
|
| @@ 157-164 (lines=8) @@ | ||
| 154 | * |
|
| 155 | * @return Jaxon\Response\Response the Jaxon response |
|
| 156 | */ |
|
| 157 | public function onAfter($bEndRequest) |
|
| 158 | { |
|
| 159 | if(($xCallback = $this->xCallbackManager->after())) |
|
| 160 | { |
|
| 161 | call_user_func_array($xCallback, [$this->xTargetRequestPlugin->getTarget(), $bEndRequest]); |
|
| 162 | } |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * This callback is called whenever an invalid request is processed. |
|
| 167 | * |
|