original_string: public function set_callback_options($class, array $argarray, $component) {
          global $CFG;
  
          // Require the base class first before any other files.
          require_once($CFG->libdir . '/portfolio/caller.php');
  
          // Include any potential callback files and check for errors.
          portfolio_include_callback_file($component, $class);
  
          // This will throw exceptions but should not actually do anything other than verify callbackargs.
          $test = new $class($argarray);
          unset($test);
  
          $this->callbackcomponent = $component;
          $this->callbackclass = $class;
          $this->callbackargs = $argarray;
      }
code: public function set_callback_options($class, array $argarray, $component) {
          global $CFG;
  
          // Require the base class first before any other files.
          require_once($CFG->libdir . '/portfolio/caller.php');
  
          // Include any potential callback files and check for errors.
          portfolio_include_callback_file($component, $class);
  
          // This will throw exceptions but should not actually do anything other than verify callbackargs.
          $test = new $class($argarray);
          unset($test);
  
          $this->callbackcomponent = $component;
          $this->callbackclass = $class;
          $this->callbackargs = $argarray;
      }
code_tokens: public function set_callback_options ( $ class , array $ argarray , $ component ) { global $ CFG ; // Require the base class first before any other files. require_once ( $ CFG -> libdir . '/portfolio/caller.php' ) ; // Include any potential callback files and check for errors. portfolio_include_callback_file ( $ component , $ class ) ; // This will throw exceptions but should not actually do anything other than verify callbackargs. $ test = new $ class ( $ argarray ) ; unset ( $ test ) ; $ this -> callbackcomponent = $ component ; $ this -> callbackclass = $ class ; $ this -> callbackargs = $ argarray ; }
docstring: Function to set the callback options
  
  @param string $class Name of the class containing the callback functions
  activity components should ALWAYS use their name_portfolio_caller
  other locations must use something unique
  @param array $argarray This can be an array or hash of arguments to pass
  back to the callback functions (passed by reference)
  these MUST be primatives to be added as hidden form fields.
  and the values get cleaned to PARAM_ALPHAEXT or PARAM_FLOAT or PARAM_PATH
  @param string $component This is the name of the component in Moodle, eg 'mod_forum'
docstring_tokens: Function to set the callback options