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;
    }
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;
    }
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 ; }
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
Update the timemodifiedoffline attempt field . This function should be used only when web services are being used .