original_string: public function process_stage_send() {
          // send the file
          try {
              $this->instance->send_package();
          }
          catch (portfolio_plugin_exception $e) {
              // not catching anything more general here. plugins with dependencies on other libraries that throw exceptions should catch and rethrow.
              // eg curl exception
              throw new portfolio_export_exception($this, 'failedtosendpackage', 'portfolio', null, $e->getMessage());
          }
          // only log push types, pull happens in send_file
          if ($this->get('instance')->is_push()) {
              $this->log_transfer();
          }
          return true;
      }
code: public function process_stage_send() {
          // send the file
          try {
              $this->instance->send_package();
          }
          catch (portfolio_plugin_exception $e) {
              // not catching anything more general here. plugins with dependencies on other libraries that throw exceptions should catch and rethrow.
              // eg curl exception
              throw new portfolio_export_exception($this, 'failedtosendpackage', 'portfolio', null, $e->getMessage());
          }
          // only log push types, pull happens in send_file
          if ($this->get('instance')->is_push()) {
              $this->log_transfer();
          }
          return true;
      }
code_tokens: public function process_stage_send ( ) { // send the file try { $ this -> instance -> send_package ( ) ; } catch ( portfolio_plugin_exception $ e ) { // not catching anything more general here. plugins with dependencies on other libraries that throw exceptions should catch and rethrow. // eg curl exception throw new portfolio_export_exception ( $ this , 'failedtosendpackage' , 'portfolio' , null , $ e -> getMessage ( ) ) ; } // only log push types, pull happens in send_file if ( $ this -> get ( 'instance' ) -> is_push ( ) ) { $ this -> log_transfer ( ) ; } return true ; }
docstring: Processes the 'send' stage of the export
  
  @return bool whether or not to process the next stage. this is important as the control function is called recursively.
docstring_tokens: Processes the send stage of the export