public function call($sFunction)
    {
        $aArguments = func_get_args();
        $sFunction = (string)$sFunction;
        // Remove the function name from the arguments array.
        array_shift($aArguments);

        // Makes legacy code works
        if(strpos($sFunction, '.') !== false)
        {
            // If there is a dot in the name, then it is a call to a class
            $this->sPrefix = $this->getOption('core.prefix.class');
        }

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

        // Makes legacy code works
        if(strpos($sFunction, '.') !== false)
        {
            // If there is a dot in the name, then it is a call to a class
            $this->sPrefix = $this->getOption('core.prefix.class');
        }

        // Make the request
        $xRequest = new Request($this->sPrefix . $sFunction);
        $xRequest->useSingleQuote();
        $xRequest->addParameters($aArguments);
        return $xRequest;
    }
public function call ( $ sFunction ) { $ aArguments = func_get_args ( ) ; $ sFunction = ( string ) $ sFunction ; // Remove the function name from the arguments array. array_shift ( $ aArguments ) ; // Makes legacy code works if ( strpos ( $ sFunction , '.' ) !== false ) { // If there is a dot in the name, then it is a call to a class $ this -> sPrefix = $ this -> getOption ( 'core.prefix.class' ) ; } // Make the request $ xRequest = new Request ( $ this -> sPrefix . $ sFunction ) ; $ xRequest -> useSingleQuote ( ) ; $ xRequest -> addParameters ( $ aArguments ) ; return $ xRequest ; }
Return the javascript call to a Jaxon function or object method

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

@return Request
Return the javascript call to a Jaxon function or object method