original_string: public function mark_inprogress($timestarted = null) {
  
          $timenow = time();
  
          // Set reaggregate flag
          $this->reaggregate = $timenow;
  
          if (!$this->timestarted) {
  
              if (!$timestarted) {
                  $timestarted = $timenow;
              }
  
              $this->timestarted = $timestarted;
          }
  
          return $this->_save();
      }
code: public function mark_inprogress($timestarted = null) {
  
          $timenow = time();
  
          // Set reaggregate flag
          $this->reaggregate = $timenow;
  
          if (!$this->timestarted) {
  
              if (!$timestarted) {
                  $timestarted = $timenow;
              }
  
              $this->timestarted = $timestarted;
          }
  
          return $this->_save();
      }
code_tokens: public function mark_inprogress ( $ timestarted = null ) { $ timenow = time ( ) ; // Set reaggregate flag $ this -> reaggregate = $ timenow ; if ( ! $ this -> timestarted ) { if ( ! $ timestarted ) { $ timestarted = $ timenow ; } $ this -> timestarted = $ timestarted ; } return $ this -> _save ( ) ; }
docstring: Mark this user as inprogress in this course
  
  If the user is already marked as inprogress, the time will not be changed
  
  @param integer $timestarted Time started (optional)
docstring_tokens: Mark this user as inprogress in this course