public function onEventBefore(&$bEndRequest)
    {
        // Validate the inputs
        $class = $_POST['jxncls'];
        $method = $_POST['jxnmthd'];
        if(!$this->validateClass($class) || !$this->validateMethod($method))
        {
            // End the request processing if the input data are not valid.
            // Todo: write an error message in the response
            $bEndRequest = true;
            return $this->xResponse;
        }
        // Instanciate the class. This will include the required file.
        $this->xRequestObject = $this->instance($class);
        $this->sRequestMethod = $method;
        if(!$this->xRequestObject)
        {
            // End the request processing if the class cannot be found.
            // Todo: write an error message in the response
            $bEndRequest = true;
            return $this->xResponse;
        }

        // Call the user defined callback
        if(($this->xBeforeCallback))
        {
            call_user_func_array($this->xBeforeCallback, array($this->xRequestObject, $this->sRequestMethod, &$bEndRequest));
        }
        return $this->xResponse;
    }
public function onEventBefore(&$bEndRequest)
    {
        // Validate the inputs
        $class = $_POST['jxncls'];
        $method = $_POST['jxnmthd'];
        if(!$this->validateClass($class) || !$this->validateMethod($method))
        {
            // End the request processing if the input data are not valid.
            // Todo: write an error message in the response
            $bEndRequest = true;
            return $this->xResponse;
        }
        // Instanciate the class. This will include the required file.
        $this->xRequestObject = $this->instance($class);
        $this->sRequestMethod = $method;
        if(!$this->xRequestObject)
        {
            // End the request processing if the class cannot be found.
            // Todo: write an error message in the response
            $bEndRequest = true;
            return $this->xResponse;
        }

        // Call the user defined callback
        if(($this->xBeforeCallback))
        {
            call_user_func_array($this->xBeforeCallback, array($this->xRequestObject, $this->sRequestMethod, &$bEndRequest));
        }
        return $this->xResponse;
    }
public function onEventBefore ( & $ bEndRequest ) { // Validate the inputs $ class = $ _POST [ 'jxncls' ] ; $ method = $ _POST [ 'jxnmthd' ] ; if ( ! $ this -> validateClass ( $ class ) || ! $ this -> validateMethod ( $ method ) ) { // End the request processing if the input data are not valid. // Todo: write an error message in the response $ bEndRequest = true ; return $ this -> xResponse ; } // Instanciate the class. This will include the required file. $ this -> xRequestObject = $ this -> instance ( $ class ) ; $ this -> sRequestMethod = $ method ; if ( ! $ this -> xRequestObject ) { // End the request processing if the class cannot be found. // Todo: write an error message in the response $ bEndRequest = true ; return $ this -> xResponse ; } // Call the user defined callback if ( ( $ this -> xBeforeCallback ) ) { call_user_func_array ( $ this -> xBeforeCallback , array ( $ this -> xRequestObject , $ this -> sRequestMethod , & $ bEndRequest ) ) ; } return $ this -> xResponse ; }
This is the pre-request processing callback passed to the Jaxon library.

@param  boolean  &$bEndRequest if set to true, the request processing is interrupted.

@return Jaxon\Response\Response  the Jaxon response
This is the pre - request processing callback passed to the Jaxon library .