original_string: public function set_config_function($function) {
          $configname = 'yui' . (count($this->jsconfigfunctions) + 1) . 'ConfigFn';
          if (isset($this->jsconfigfunctions[$configname])) {
              throw new coding_exception("A YUI config function with this name already exists. Config function names must be unique.");
          }
          $this->jsconfigfunctions[$configname] = $function;
          return '@' . $configname . '@';
      }
code: public function set_config_function($function) {
          $configname = 'yui' . (count($this->jsconfigfunctions) + 1) . 'ConfigFn';
          if (isset($this->jsconfigfunctions[$configname])) {
              throw new coding_exception("A YUI config function with this name already exists. Config function names must be unique.");
          }
          $this->jsconfigfunctions[$configname] = $function;
          return '@' . $configname . '@';
      }
code_tokens: public function set_config_function ( $ function ) { $ configname = 'yui' . ( count ( $ this -> jsconfigfunctions ) + 1 ) . 'ConfigFn' ; if ( isset ( $ this -> jsconfigfunctions [ $ configname ] ) ) { throw new coding_exception ( "A YUI config function with this name already exists. Config function names must be unique." ) ; } $ this -> jsconfigfunctions [ $ configname ] = $ function ; return '@' . $ configname . '@' ; }
docstring: Set the value of a configuration function used by the YUI Loader's pattern testing.
  
  Only the body of the function should be passed, and not the whole function wrapper.
  
  The JS function your write will be passed a single argument 'name' containing the
  name of the module being loaded.
  
  @param $function String the body of the JavaScript function. This should be used i
  @return String the name of the function to use in the group pattern configuration.
docstring_tokens: Set the value of a configuration function used by the YUI Loader s pattern testing .