original_string: public function set_offline_modified_time($time) {
          global $DB;
  
          // Update the timemodifiedoffline field only if web services are being used.
          if (WS_SERVER) {
              $this->attempt->timemodifiedoffline = $time;
              return true;
          }
          return false;
      }
code: public function set_offline_modified_time($time) {
          global $DB;
  
          // Update the timemodifiedoffline field only if web services are being used.
          if (WS_SERVER) {
              $this->attempt->timemodifiedoffline = $time;
              return true;
          }
          return false;
      }
code_tokens: public function set_offline_modified_time ( $ time ) { global $ DB ; // Update the timemodifiedoffline field only if web services are being used. if ( WS_SERVER ) { $ this -> attempt -> timemodifiedoffline = $ time ; return true ; } return false ; }
docstring: Update the timemodifiedoffline attempt field.
  This function should be used only when web services are being used.
  
  @param int $time time stamp
  @return boolean false if the field is not updated because web services aren't being used.
  @since Moodle 3.2
docstring_tokens: Update the timemodifiedoffline attempt field . This function should be used only when web services are being used .