original_string: public function wrapFunction($sFunction, $sArgs, $aScripts, $sReturnValueVar)
      {
          return $this->addCommand(
              array(
                  'cmd' => 'wpf',
                  'func' => trim((string)$sFunction, " \t"),
                  'prop' => trim((string)$sArgs, " \t"),
                  'type' => trim((string)$sReturnValueVar, " \t")
              ),
              $aScripts
          );
      }
code: public function wrapFunction($sFunction, $sArgs, $aScripts, $sReturnValueVar)
      {
          return $this->addCommand(
              array(
                  'cmd' => 'wpf',
                  'func' => trim((string)$sFunction, " \t"),
                  'prop' => trim((string)$sArgs, " \t"),
                  'type' => trim((string)$sReturnValueVar, " \t")
              ),
              $aScripts
          );
      }
code_tokens: public function wrapFunction ( $ sFunction , $ sArgs , $ aScripts , $ sReturnValueVar ) { return $ this -> addCommand ( array ( 'cmd' => 'wpf' , 'func' => trim ( ( string ) $ sFunction , " \t" ) , 'prop' => trim ( ( string ) $ sArgs , " \t" ) , 'type' => trim ( ( string ) $ sReturnValueVar , " \t" ) ) , $ aScripts ) ; }
docstring: Add a command to construct a wrapper function around an existing javascript function on the browser
  
  @param string        $sFunction            The name of the existing function to wrap
  @param string        $sArgs                The comma separated list of parameters for the function
  @param array            $aScripts            An array of javascript code snippets that will be used to build
  the body of the function
  The first piece of code specified in the array will occur before
  the call to the original function, the second will occur after
  the original function is called.
  @param string        $sReturnValueVar    The name of the variable that will retain the return value
  from the call to the original function
  
  @return \Jaxon\Plugin\Response
docstring_tokens: Add a command to construct a wrapper function around an existing javascript function on the browser