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