public function setFunction($sFunction, $sArgs, $sScript)
    {
        return $this->addCommand(
            array(
                'cmd' => 'sf',
                'func' => trim((string)$sFunction, " \t"),
                'prop' => trim((string)$sArgs, " \t")
            ),
            trim((string)$sScript, " \t\n")
        );
    }
public function setFunction($sFunction, $sArgs, $sScript)
    {
        return $this->addCommand(
            array(
                'cmd' => 'sf',
                'func' => trim((string)$sFunction, " \t"),
                'prop' => trim((string)$sArgs, " \t")
            ),
            trim((string)$sScript, " \t\n")
        );
    }
public function setFunction ( $ sFunction , $ sArgs , $ sScript ) { return $ this -> addCommand ( array ( 'cmd' => 'sf' , 'func' => trim ( ( string ) $ sFunction , " \t" ) , 'prop' => trim ( ( string ) $ sArgs , " \t" ) ) , trim ( ( string ) $ sScript , " \t\n" ) ) ; }
Add a command to construct a javascript function on the browser

@param string        $sFunction            The name of the function to construct
@param string        $sArgs                Comma separated list of parameter names
@param string        $sScript            The javascript code that will become the body of the function

@return \Jaxon\Plugin\Response
Add a command to construct a javascript function on the browser