original_string: public function log_transfer() {
          global $DB;
          $l = array(
              'userid' => $this->user->id,
              'portfolio' => $this->instance->get('id'),
              'caller_file'=> '',
              'caller_component' => $this->callercomponent,
              'caller_sha1' => $this->caller->get_sha1(),
              'caller_class' => get_class($this->caller),
              'continueurl' => $this->instance->get_static_continue_url(),
              'returnurl' => $this->caller->get_return_url(),
              'tempdataid' => $this->id,
              'time' => time(),
          );
          $DB->insert_record('portfolio_log', $l);
      }
code: public function log_transfer() {
          global $DB;
          $l = array(
              'userid' => $this->user->id,
              'portfolio' => $this->instance->get('id'),
              'caller_file'=> '',
              'caller_component' => $this->callercomponent,
              'caller_sha1' => $this->caller->get_sha1(),
              'caller_class' => get_class($this->caller),
              'continueurl' => $this->instance->get_static_continue_url(),
              'returnurl' => $this->caller->get_return_url(),
              'tempdataid' => $this->id,
              'time' => time(),
          );
          $DB->insert_record('portfolio_log', $l);
      }
code_tokens: public function log_transfer ( ) { global $ DB ; $ l = array ( 'userid' => $ this -> user -> id , 'portfolio' => $ this -> instance -> get ( 'id' ) , 'caller_file' => '' , 'caller_component' => $ this -> callercomponent , 'caller_sha1' => $ this -> caller -> get_sha1 ( ) , 'caller_class' => get_class ( $ this -> caller ) , 'continueurl' => $ this -> instance -> get_static_continue_url ( ) , 'returnurl' => $ this -> caller -> get_return_url ( ) , 'tempdataid' => $ this -> id , 'time' => time ( ) , ) ; $ DB -> insert_record ( 'portfolio_log' , $ l ) ; }
docstring: Log the transfer
  
  this should only be called after the file has been sent
  either via push, or sent from a pull request.
docstring_tokens: Log the transfer