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