public function func($sFunction)
    {
        $aArguments = func_get_args();
        $sFunction = (string)$sFunction;
        // Remove the function name from the arguments array.
        array_shift($aArguments);
        // Make the request
        $xRequest = new Request($sFunction);
        $xRequest->useSingleQuote();
        $xRequest->addParameters($aArguments);
        return $xRequest;
    }
public function func($sFunction)
    {
        $aArguments = func_get_args();
        $sFunction = (string)$sFunction;
        // Remove the function name from the arguments array.
        array_shift($aArguments);
        // Make the request
        $xRequest = new Request($sFunction);
        $xRequest->useSingleQuote();
        $xRequest->addParameters($aArguments);
        return $xRequest;
    }
public function func ( $ sFunction ) { $ aArguments = func_get_args ( ) ; $ sFunction = ( string ) $ sFunction ; // Remove the function name from the arguments array. array_shift ( $ aArguments ) ; // Make the request $ xRequest = new Request ( $ sFunction ) ; $ xRequest -> useSingleQuote ( ) ; $ xRequest -> addParameters ( $ aArguments ) ; return $ xRequest ; }
Return the javascript call to a generic function

@param string            $sFunction          The function or method (with class) name
@param ...               $xParams            The parameters of the function or method

@return Request
Return the javascript call to a generic function